Skip to content

Kirby 3.5.7.1

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