Skip to content

Kirby 5.0.2

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

Parent class

Kirby\Cms\PageRules