Skip to content

Kirby 4.5.0

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 null

Return type

bool

Exceptions

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

Parent class

Kirby\Cms\PageRules