PageField::setParents()
Set parent(s) for this page field
Available since version 3.0.258.
Usage
$self = $pageField->setParents($parents);Arguments
| Name | Type(s) | Description |
|---|---|---|
$parents | PageArray array string int | Parent Page instances, paths or ids |
Return value
self
Exceptions
Method can throw exceptions on error:
WireException- If parent cannot be identified
PageField methods and properties
API reference based on ProcessWire core version 3.0.261