Skip to content

Kirby 4.5.0

$page->title()

Returns the title field or the slug as fallback

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

Return type

Kirby\Content\Field

Parent class

Kirby\Cms\Page

Example

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