Add a field to this Fieldgroup
Example
$field = $fields->get('body');
$fieldgroup->add($field);
Usage
$fieldgroup->add($item);
Arguments
Name | Type(s) | Description |
---|---|---|
item | Field, string | Field object, field name or id. |
Return value
$this
Object instance it was called from (method supports fluent interface).
Exceptions
Method can throw exceptions on error:
WireException
See Also
Fieldgroup methods and properties
API reference based on ProcessWire core version 3.0.236