$page->parent()
Returns the parent Page object
$page->parent(): Page|null
Return type
Page|null
Example
This page is a subpage of:
<a href="<?= $page->parent()->url() ?>">
<?= html($page->parent()->title()) ?>
</a>
Returns the parent Page object
$page->parent(): Page|null
Page|null
This page is a subpage of:
<a href="<?= $page->parent()->url() ?>">
<?= html($page->parent()->title()) ?>
</a>