SilverStripe\CMS\Model\SiteTree::setParent
Make this page a child of another page.
If the parent page does not exist, resolve it to a valid ID before updating this page's reference.
Signature
public function setParent(SiteTree|int
$item )
Parameters
$item
— object- Either the parent object, or the parent ID