Skip to content

Kirby 4.4.1

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 null

Return type

bool

Exceptions

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

Parent class

Kirby\Cms\PageRules