private function getChoiceOptions(
        FormFieldTranslation $translation,
        $options
    ) {
        if (isset($options['attr']['placeholder'])) {
            $options['placeholder'] = $options['attr']['placeholder'];
            unset($options['attr']['placeholder']);
        }

        // Choices.
        $choices = $this->getChoices($translation);
        $options['choices_as_values'] = true;
        $options['choices'] = $choices;

        return $options;
    }
private function getChoiceOptions(
        FormFieldTranslation $translation,
        $options
    ) {
        if (isset($options['attr']['placeholder'])) {
            $options['placeholder'] = $options['attr']['placeholder'];
            unset($options['attr']['placeholder']);
        }

        // Choices.
        $choices = $this->getChoices($translation);
        $options['choices_as_values'] = true;
        $options['choices'] = $choices;

        return $options;
    }
private function getChoiceOptions ( FormFieldTranslation $ translation , $ options ) { if ( isset ( $ options [ 'attr' ] [ 'placeholder' ] ) ) { $ options [ 'placeholder' ] = $ options [ 'attr' ] [ 'placeholder' ] ; unset ( $ options [ 'attr' ] [ 'placeholder' ] ) ; } // Choices. $ choices = $ this -> getChoices ( $ translation ) ; $ options [ 'choices_as_values' ] = true ; $ options [ 'choices' ] = $ choices ; return $ options ; }
Returns options for multichoice form type like select, multiple select, radio or checkboxes.

@param FormFieldTranslation $translation
@param array $options

@return array
Returns options for multichoice form type like select multiple select radio or checkboxes .