pathinfo Modifier

Get information about a file path.

path: '/local/file/example.pdf'
{{ path | pathinfo }}
{{ path | pathinfo:extension }}
[
'dirname' => '/local/file',
'basename' => 'example.pdf',
'filename' => 'example',
'extension' => 'pdf',
]
pdf
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →