Skip to content

Kirby 5.0.4

PageRules::changeStatusToListed()

Validates if the status of a page can be changed to listed

PageRules::changeStatusToListed(Kirby\Cms\Page $page, int $position): void

Parameters

Name Type Default
$pagerequired Kirby\Cms\Page no default value
$positionrequired int no default value

Exceptions

Type Description
Kirby\Exception\InvalidArgumentException If the given position is invalid
Kirby\Exception\PermissionException If the user is not allowed to change the status or the status for the page cannot be changed by any user

Parent class

Kirby\Cms\PageRules