$file->extension()

Returns the file extension

  • return (string)

Example

<?= $page->file()->extension(); ?>