PageRules::changeStatusToDraft()
Validates if a page can be converted to a draft
PageRules::changeStatusToDraft(Kirby\Cms\Page $page): void
Parameters
Name | Type | Default |
---|---|---|
$pagerequired | Kirby\Cms\Page |
no default value |
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 |