private function addFieldChoiceOptions(array &$options, array $formFieldConfiguration, array $fieldConfiguration)
    {
        if (isset($formFieldConfiguration['options'])) {
            $fieldConfiguration['options'] = $formFieldConfiguration['options'];
        }

        if (isset($fieldConfiguration['options'])) {
            $options['choices'] = array();
            foreach ($fieldConfiguration['options'] as $option) {
                $options['choices'][$option['label']] = $option['value'];
            }
        }
    }
private function addFieldChoiceOptions(array &$options, array $formFieldConfiguration, array $fieldConfiguration)
    {
        if (isset($formFieldConfiguration['options'])) {
            $fieldConfiguration['options'] = $formFieldConfiguration['options'];
        }

        if (isset($fieldConfiguration['options'])) {
            $options['choices'] = array();
            foreach ($fieldConfiguration['options'] as $option) {
                $options['choices'][$option['label']] = $option['value'];
            }
        }
    }
private function addFieldChoiceOptions ( array & $ options , array $ formFieldConfiguration , array $ fieldConfiguration ) { if ( isset ( $ formFieldConfiguration [ 'options' ] ) ) { $ fieldConfiguration [ 'options' ] = $ formFieldConfiguration [ 'options' ] ; } if ( isset ( $ fieldConfiguration [ 'options' ] ) ) { $ options [ 'choices' ] = array ( ) ; foreach ( $ fieldConfiguration [ 'options' ] as $ option ) { $ options [ 'choices' ] [ $ option [ 'label' ] ] = $ option [ 'value' ] ; } } }
Adds the choices option to the field options.

@param array $options
@param array $formFieldConfiguration
@param array $fieldConfiguration
Adds the choices option to the field options .