Zend\Form\LabelAwareTrait
Synopsis
trait LabelAwareTrait
{
- // members
- protected array $labelAttributes;
- protected array $labelOptions;
- // methods
- public LabelAwareInterface setLabelAttributes()
- public array getLabelAttributes()
- public Element|ElementInterface setLabelOptions()
- public array getLabelOptions()
- public Element|ElementInterface clearLabelOptions()
- public ElementInterface removeLabelOptions()
- public Element|ElementInterface setLabelOption()
- public mixed|null getLabelOption()
- public ElementInterface removeLabelOption()
- public bool hasLabelOption()
Members
protected
- $labelAttributes
—
array
Label specific html attributes - $labelOptions
—
array
Label specific options
Methods
public
- clearLabelOptions() — Clear all label options
- getLabelAttributes() — Get the attributes to use with the label
- getLabelOption() — Retrieve a single label option
- getLabelOptions() — Get label specific options
- hasLabelOption() — Does the element has a specific label option ?
- removeLabelOption() — Remove a single label option
- removeLabelOptions() — Remove many attributes at once
- setLabelAttributes() — Set the attributes to use with the label
- setLabelOption() — Set a single label optionn
- setLabelOptions() — Set many label options at once