PageRules::changeTitle()
Validates if the title of the page can be changed
PageRules::changeTitle(Kirby\Cms\Page $page, string $title): bool
Parameters
| Name | Type | Default |
|---|---|---|
| $page * | Kirby\Cms\Page |
– |
| $title * | string |
– |
Return type
bool
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 |