package Default

 Methods

Clear all label options

clearLabelOptions() : \Zend\Form\Element | \Zend\Form\ElementInterface

Returns

\Zend\Form\Element\Zend\Form\ElementInterface

Get the attributes to use with the label

getLabelAttributes() : array

Returns

array

Retrieve a single label option

getLabelOption($key) : mixed | null

Parameters

$key

Returns

mixednull

Get label specific options

getLabelOptions() : array

Returns

array

Does the element has a specific label option ?

hasLabelOption(string $key) : boolean

Parameters

$key

string

Returns

boolean

Remove a single label option

removeLabelOption(string $key) : \Zend\Form\ElementInterface

Parameters

$key

string

Returns

\Zend\Form\ElementInterface

Remove many attributes at once

removeLabelOptions(array $keys) : \Zend\Form\ElementInterface

Parameters

$keys

array

Returns

\Zend\Form\ElementInterface

Set the attributes to use with the label

setLabelAttributes(array $labelAttributes) : \Zend\Form\LabelAwareInterface

Parameters

$labelAttributes

array

Returns

\Zend\Form\LabelAwareInterface

Set a single label optionn

setLabelOption(string $key, mixed $value) : \Zend\Form\Element | \Zend\Form\ElementInterface

Parameters

$key

string

$value

mixed

Returns

\Zend\Form\Element\Zend\Form\ElementInterface

Set many label options at once

setLabelOptions(array|\Traversable $arrayOrTraversable) : \Zend\Form\Element | \Zend\Form\ElementInterface

Implementation will decide if this will overwrite or merge.

Parameters

$arrayOrTraversable

array\Traversable

Exceptions

\Zend\Form\Exception\InvalidArgumentException

Returns

\Zend\Form\Element\Zend\Form\ElementInterface

 Properties

 

Label specific html attributes

$labelAttributes : array

Default

 

Label specific options

$labelOptions : array

Default

array()