PageRules::changeStatusToDraft()
Validates if a page can be converted to a draft
Parameters
Name | Type | Default |
---|---|---|
$page * | Kirby\Cms\Page |
– |
Return type
bool
Exceptions
Type | Description |
---|---|
Kirby\Exception\PermissionException |
If the user is not allowed to change the status or the page cannot be converted to a draft |