Skip to content

Kirby 3.8.4

PageRules::changeStatusToDraft()

Validates if a page can be converted to a draft

PageRules::changeStatusToDraft(Kirby\Cms\Page $page): bool

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

Parent class

Kirby\Cms\PageRules