PageField::setParent()
Set parent for this page field
To get current value use $field->parent_id
Available since version 3.0.258.
Usage
$self = $pageField->setParent($parent);Arguments
| Name | Type(s) | Description |
|---|---|---|
$parent | Page string int null | Parent Page, path or id; pass 0/null/'' to clear restriction |
Return value
self
Exceptions
Method can throw exceptions on error:
WireException- If a non-empty parent value cannot be resolved
PageField methods and properties
API reference based on ProcessWire core version 3.0.261