Skip to content

Kirby 3.6.6

PageRules::changeStatus()

Validates if the status for the page can be changed

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

Parameters

Name Type Default
$page * Kirby\Cms\Page
$status * string
$position int null

Return type

bool

Exceptions

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

Parent class

Kirby\Cms\PageRules