PagesEditor::editor method

Return whether given Page is moveable from $oldParent to $newParent

Usage

$bool = $pages->editor->isMoveable(Page $page, Page $oldParent, Page $newParent, string $reason);

Arguments

NameType(s)Description
$pagePage

Page to move

$oldParentPage

Current/old parent page

$newParentPage

New requested parent page

$reasonstring

Populated with reason why page is not moveable, if return value is false.

Return value

bool


$pages->editor methods and properties

API reference based on ProcessWire core version 3.0.252