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