Skip to content

Kirby 5.0.4

$pageActions->changeSort()

Change the position of the page in its siblings collection. Siblings will be resorted. If the page status isn't yet listed, it will be changed to it.

$pageActions->changeSort(int|null $position = null): Kirby\Cms\PageActions

Parameters

Name Type Default
$position intornull null

Return types

Kirby\Cms\PageActions

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

Parent class

Kirby\Cms\PageActions