Dynamic/Types/ChoiceTrait.php
protected function getChoices(FormFieldTranslation $translation)
    {
        $choices = preg_split('/\r\n|\r|\n/', $translation->getOption('choices'), -1, PREG_SPLIT_NO_EMPTY);

        return array_combine($choices, $choices);
    }
protected function getChoices(FormFieldTranslation $translation)
    {
        $choices = preg_split('/\r\n|\r|\n/', $translation->getOption('choices'), -1, PREG_SPLIT_NO_EMPTY);

        return array_combine($choices, $choices);
    }
Get choices.

@param FormFieldTranslation $translation

@return array