Skip to content

Kirby 4.5.0

PageRules::changeStatusToListed()

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

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

Parameters

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

Return type

bool

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