Methods

Clear all label options

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

Retrieve the label (if any) used for this element

getLabel() : string

Returns

string

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) : bool

Parameters

$key

string

Returns

bool

Remove a single label option

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

Parameters

$key

string

Returns

Remove many attributes at once

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

Parameters

$keys

array

Returns

Set the label (if any) used for this element

setLabel($label) : \Zend\Form\ElementInterface

Parameters

$label

Returns

Set the attributes to use with the label

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

Parameters

$labelAttributes

array

Returns

\Zend\Form\self

Set a single label optionn

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

Parameters

$key

string

$value

mixed

Returns

Set many label options at once

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

Implementation will decide if this will overwrite or merge.

Parameters

$arrayOrTraversable

array\Traversable

Returns

\Zend\Form\self