Fieldgroup::add()

Add a field to this Fieldgroup

Example

$field = $fields->get('body');
$fieldgroup->add($field); 

Usage

$fieldgroup->add($item);

Arguments

NameType(s)Description
$itemField 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


Fieldgroup methods and properties

API reference based on ProcessWire core version 3.0.251