protected function getFieldOptionsArray(FieldInterface $field)
    {
        $choices = [];
        $fieldOptions = $this->getFieldOptions($field);
        if (isset($fieldOptions['choices']) && is_array($fieldOptions['choices'])) {
            $choices = $fieldOptions['choices'];
        }
        return $choices;
    }
protected function getFieldOptionsArray(FieldInterface $field)
    {
        $choices = [];
        $fieldOptions = $this->getFieldOptions($field);
        if (isset($fieldOptions['choices']) && is_array($fieldOptions['choices'])) {
            $choices = $fieldOptions['choices'];
        }
        return $choices;
    }
protected function getFieldOptionsArray ( FieldInterface $ field ) { $ choices = [ ] ; $ fieldOptions = $ this -> getFieldOptions ( $ field ) ; if ( isset ( $ fieldOptions [ 'choices' ] ) && is_array ( $ fieldOptions [ 'choices' ] ) ) { $ choices = $ fieldOptions [ 'choices' ] ; } return $ choices ; }
Get field's options

@param FieldInterface $field

@return array
Get field s options