$page->title()

Returns the page title. The title is fetched from the content unless it does not exist. In this case it will be overwritten by the UID.

  • return (string)

Example

<?php echo $page->title() ?>