package Default

 Methods

Clear all label options

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

Returns

\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) : 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 label (if any) used for this element

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

Parameters

$label

Returns

\Zend\Form\ElementInterface

Set the attributes to use with the label

setLabelAttributes(array $labelAttributes) : \Zend\Form\LabelAwareInterface
fluent This method is part of a fluent interface and will return the same instance

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\LabelAwareInterface

Implementation will decide if this will overwrite or merge.

fluent This method is part of a fluent interface and will return the same instance

Parameters

$arrayOrTraversable

array\Traversable

Returns

\Zend\Form\LabelAwareInterface