PagesParents::parents method

Rebuild pages_parents table for given page (experimental faster alternative/rewrite of rebuild method)

Available since version 3.0.212.

Usage

$int = $pages->parents->movePage(Page $page, Page $oldParent, Page $newParent);

Arguments

NameType(s)Description
$pagePage
$oldParentPage
$newParentPage

Return value

int

Exceptions

Method can throw exceptions on error:

  • WireException


$pages->parents methods and properties

API reference based on ProcessWire core version 3.0.252