original_string: public function determineFormStoreOptions(ModelRelationData $data)
      {
          $options = [];
  
          switch ($data->type) {
  
              case RelationType::MORPH_TO:
                  // Set special morph options to mark the targetable model classes
                  $models = $this->determineMorphModelsForRelationData($data);
  
                  if (count($models)) {
                      $options['models'] = $models;
                  }
                  break;
          }
  
          return $options;
      }
code: public function determineFormStoreOptions(ModelRelationData $data)
      {
          $options = [];
  
          switch ($data->type) {
  
              case RelationType::MORPH_TO:
                  // Set special morph options to mark the targetable model classes
                  $models = $this->determineMorphModelsForRelationData($data);
  
                  if (count($models)) {
                      $options['models'] = $models;
                  }
                  break;
          }
  
          return $options;
      }
code_tokens: public function determineFormStoreOptions ( ModelRelationData $ data ) { $ options = [ ] ; switch ( $ data -> type ) { case RelationType :: MORPH_TO : // Set special morph options to mark the targetable model classes $ models = $ this -> determineMorphModelsForRelationData ( $ data ) ; if ( count ( $ models ) ) { $ options [ 'models' ] = $ models ; } break ; } return $ options ; }
docstring: Determines a form store's options for given relation data.
  
  @param ModelRelationData $data
  @return array
docstring_tokens: Determines a form store s options for given relation data .