Matthias\SymfonyConsoleForm\Console\Helper\Question\AlwaysReturnKeyOfChoiceQuestion::prepareChoices PHP Méthode

prepareChoices() private méthode

private prepareChoices ( ) : array
Résultat array
    private function prepareChoices()
    {
        $choices = [];
        foreach ($this->choiceViews as $choiceView) {
            $label = $choiceView->label;
            if ($choiceView->data != $choiceView->value) {
                $label .= ' (<comment>' . $choiceView->data . '</comment>)';
            }
            $choices[$choiceView->value] = $label;
        }
        return $choices;
    }