protected function makeModelShowFieldDataForRelationData(ModelRelationData $relation, ModelInformationInterface $info)
    {
        return new ModelShowFieldData([
            'source'         => $relation->method,
            'strategy'       => $this->determineListDisplayStrategyForRelation($relation),
            'label'          => ucfirst(str_replace('_', ' ', snake_case($relation->method))),
        ]);
    }
protected function makeModelShowFieldDataForRelationData(ModelRelationData $relation, ModelInformationInterface $info)
    {
        return new ModelShowFieldData([
            'source'         => $relation->method,
            'strategy'       => $this->determineListDisplayStrategyForRelation($relation),
            'label'          => ucfirst(str_replace('_', ' ', snake_case($relation->method))),
        ]);
    }
protected function makeModelShowFieldDataForRelationData ( ModelRelationData $ relation , ModelInformationInterface $ info ) { return new ModelShowFieldData ( [ 'source' => $ relation -> method , 'strategy' => $ this -> determineListDisplayStrategyForRelation ( $ relation ) , 'label' => ucfirst ( str_replace ( '_' , ' ' , snake_case ( $ relation -> method ) ) ) , ] ) ; }
Makes data set for list field given relation data.

@param ModelRelationData                          $relation
@param ModelInformationInterface|ModelInformation $info
@return ModelShowFieldData
Makes data set for list field given relation data .