ChoiceGroupView
in package
implements
IteratorAggregate
Represents a group of choices in templates.
Tags
Interfaces, Classes, Traits and Enums
- IteratorAggregate
Table of Contents
- $choices : mixed
- $label : mixed
- __construct() : mixed
- Creates a new choice group view.
- getIterator() : Traversable<string|int, \Symfony\Component\Form\ChoiceList\View\ChoiceGroupView|\Symfony\Component\Form\ChoiceList\View\ChoiceView>
- {@inheritdoc}
Properties
$choices
public
mixed
$choices
$label
public
mixed
$label
Methods
__construct()
Creates a new choice group view.
public
__construct(string $label[, array<string|int, ChoiceGroupView>|array<string|int, ChoiceView> $choices = [] ]) : mixed
Parameters
- $label : string
-
The label of the group
- $choices : array<string|int, ChoiceGroupView>|array<string|int, ChoiceView> = []
-
the choice views in the group
Return values
mixed —getIterator()
{@inheritdoc}
public
getIterator() : Traversable<string|int, \Symfony\Component\Form\ChoiceList\View\ChoiceGroupView|\Symfony\Component\Form\ChoiceList\View\ChoiceView>