ZenFields::removeField
A shortcut that makes FieldList::removeByName() chainable
Signature
public function removeField([string
$fieldName = NULL,
[boolean
$dataFieldOnly = false]] )
Parameters
$fieldName
— string- The field to remove
$dataFieldOnly
— boolean- If true, do not remove dataless fields
Returns
- FieldList