Skip to content

Kirby 5.0.4

$page->title()

Returns the title field or the slug as fallback

$page->title(): Kirby\Content\Field

Return type

Kirby\Content\Field

This method modifies the existing $page object it is applied to and returns it again.

Parent class

Kirby\Cms\Page

Examples

<?= $page->title() ?>