PageRules::changeTemplate()
Validates if the template of the page can be changed
Parameters
Name | Type | Default |
---|---|---|
$page * | Kirby\Cms\Page |
– |
$template * | string |
– |
Return type
bool
Exceptions
Type | Description |
---|---|
Kirby\Exception\LogicException |
If the template of the page cannot be changed at all |
Kirby\Exception\PermissionException |
If the user is not allowed to change the template |