ParameterFieldsTrait
Table of Contents
Methods
- parameterKey() : string
- addParameterFields() : void
- controlHasItem() : bool
- Returns whether the select control has the given option among its items.
Methods
parameterKey()
protected
parameterKey(ParameterInterface $parameter) : string
Parameters
- $parameter : ParameterInterface
Return values
stringaddParameterFields()
private
addParameterFields(Form $form) : void
Parameters
- $form : Form
controlHasItem()
Returns whether the select control has the given option among its items.
private
controlHasItem(BaseControl $element, int $id) : bool
Guards setDefaultValue() against a nonexistent or removed option. Select items are keyed by
option id (int); the string variant is checked too, for text keys.
Parameters
- $element : BaseControl
- $id : int