PageRules::changeTitle()
Validates if the title of the page can be changed
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 |