$field->toFile()

Returns a file object from a filename in the field

  • return ($file)

Example

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

Is something missing or incorrect? Edit this page on Github…