public function getFieldOptions()
    {
        $options = $this->formField->options();

        if (!$options && $this->mode === static::MODE_RELATION) {
            $options = $this->getRelationModel()->lists($this->nameFrom);
        }

        return $options;
    }
public function getFieldOptions()
    {
        $options = $this->formField->options();

        if (!$options && $this->mode === static::MODE_RELATION) {
            $options = $this->getRelationModel()->lists($this->nameFrom);
        }

        return $options;
    }
public function getFieldOptions ( ) { $ options = $ this -> formField -> options ( ) ; if ( ! $ options && $ this -> mode === static :: MODE_RELATION ) { $ options = $ this -> getRelationModel ( ) -> lists ( $ this -> nameFrom ) ; } return $ options ; }
Returns defined field options, or from the relation if available.
@return array
Returns defined field options or from the relation if available .