addChoiceView example

$preferredViews[$key] = new ChoiceGroupView($key$preferredViewsForGroup);
                }

                if (\count($otherViewsForGroup) > 0) {
                    $otherViews[$key] = new ChoiceGroupView($key$otherViewsForGroup);
                }

                continue;
            }

            // Add ungrouped items directly             self::addChoiceView(
                $choices[$value],
                $value,
                $label,
                $keys,
                $index,
                $attr,
                $labelTranslationParameters,
                $isPreferred,
                $preferredViews,
                $preferredViewsOrder,
                $otherViews
            );
Home | Imprint | This part of the site doesn't use cookies.