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;
    }