$field->toFile()

Returns a file object from a filename in the field

  • return ($file)

Example

<?= $page->documentation()->toFile()->filename(); ?>