$file->extension()

Returns the file extension

  • return (string)

Example

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