PageRules::changeNum()
Validates if the sorting number of the page can be changed
PageRules::changeNum(Kirby\Cms\Page $page, int|null $num = null): void
Parameters
| Name | Type | Default |
|---|---|---|
| $pagerequired | Kirby\Cms\Page |
no default value |
| $num | intornull |
null
|
Exceptions
| Type | Description |
|---|---|
Kirby\Exception\InvalidArgumentException |
If the given number is invalid |