Skip to content

Kirby 4.2.0

$pageactions->changeNum()

Changes the sorting number.

$pageactions->changeNum(?int $num = null): Kirby\Cms\PageActions

Parameters

Name Type Default
$num int|null null

Return type

Kirby\Cms\PageActions

This method does not modify the existing $pageactions object but returns a new object with the changes applied. Learn more →

Exceptions

Type Description
Kirby\Exception\LogicException If a draft is being sorted or the directory cannot be moved

Parent class

Kirby\Cms\PageActions