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 | int ornull |
null
|
Exceptions
Type | Description |
---|---|
Kirby\Exception\InvalidArgumentException |
If the given status is invalid |