Skip to content

Kirby 4.4.1

$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() ?>