Skip to content

Kirby 3.6.6

PageRules::changeNum()

Validates if the sorting number of the page can be changed

PageRules::changeNum(Kirby\Cms\Page $page, int $num = null): bool

Parameters

Name Type Default
$page * Kirby\Cms\Page
$num int null

Return type

bool

Exceptions

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

Parent class

Kirby\Cms\PageRules