PageField::setInputfield()
Set Inputfield for this page reference field
To get current value use $field->inputfield
Available since version 3.0.258.
Usage
$self = $pageField->setInputfield($inputfield);Arguments
| Name | Type(s) | Description |
|---|---|---|
$inputfield | string Inputfield | Inputfield name (i.e. 'InputfieldText' or 'text') or Inputfield instance |
Return value
self
Exceptions
Method can throw exceptions on error:
WireException- if given unknown/invalid Inputfield name
PageField methods and properties
API reference based on ProcessWire core version 3.0.261