Skip to content

Kirby 4.1.2

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