$file->filename()

Returns the full filename including extension

  • return (string)

Example

<?php echo $page->file()->filename(); ?>