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;
    }
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;
    }
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 ; }
Determines a form store's options for given relation data.

@param ModelRelationData $data
@return array
Determines a form store s options for given relation data .