Skip to content

Kirby 5.0.4

PageRules::changeStatus()

Validates if the status for the page can be changed

PageRules::changeStatus(Kirby\Cms\Page $page, string $status, int|null $position = null): void

Parameters

Name Type Default
$pagerequired Kirby\Cms\Page no default value
$statusrequired string no default value
$position intornull null

Exceptions

Type Description
Kirby\Exception\InvalidArgumentException If the given status is invalid

Parent class

Kirby\Cms\PageRules