$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 | string ornull |
null
|
Return type
This method does not modify the existing $page
object but returns a new object with the changes applied. Learn more →