PageRules::changeTitle()
Validates if the title of the page can be changed
PageRules::changeTitle(Kirby\Cms\Page $page, string $title): void
Parameters
Name | Type | Default |
---|---|---|
$pagerequired | Kirby\Cms\Page |
no default value |
$titlerequired | string |
no default value |
Exceptions
Type | Description |
---|---|
Kirby\Exception\InvalidArgumentException |
If the new title is empty |
Kirby\Exception\PermissionException |
If the user is not allowed to change the title |