SiteRules::changeTitle()
Validates if the site title can be changed
Parameters
Name | Type | Default |
---|---|---|
$site * | Kirby\Cms\Site |
– |
$title * | string |
– |
Return type
bool
Exceptions
Type | Description |
---|---|
Kirby\Exception\InvalidArgumentException |
If the title is empty |
Kirby\Exception\PermissionException |
If the user is not allowed to change the title |