Symfony\Component\Form\Extension\Core\ChoiceList\ChoiceList::addChoiceGroup
Recursively adds a choice group.
Signature
protected function addChoiceGroup(string
$group,
array&
$bucketForPreferred,
array&
$bucketForRemaining,
array
$choices,
array
$labels,
array
$preferredChoices )
Parameters
$group
—
string
- The name of the group.
$bucketForPreferred
—
array
- The bucket where to store the preferred
view objects.
$bucketForRemaining
—
array
- The bucket where to store the
non-preferred view objects.
$choices
—
array
- The list of choices in the group.
$labels
—
array
- The labels corresponding to the choices in the group.
$preferredChoices
—
array
- The preferred choices.
Errors/Exceptions
-
InvalidConfigurationException
- If no valid value or index could be created for a choice.