$file->page()

Returns the page object for a file

  • return ($page)

Example

echo 'Document of: ' . $file->page()->title();