file_basename Twig Filter
The file_basename filter parses the file path and returns just the basename value.
This filter is unique to Aptuitiv. It is not part of the core Twig functionality.
{{ '/path/to/my/file.pdf'|file_basename }}