Skip to content

Kirby 5.0.4

$page->changeTitle()

Change the page title

$page->changeTitle(string $title, string|null $languageCode = null): Kirby\Cms\Page

Parameters

Name Type Default
$titlerequired string no default value
$languageCode stringornull null

Return type

Kirby\Cms\Page

This method does not modify the existing $page object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Cms\Page