public function getRouteNameForModelInformation(ModelInformationInterface $information, $prefix = false)
    {
        if ( ! $information->modelClass()) {
            throw new \UnexpectedValueException("No model class in information, cannot make route name");
        }

        return $this->getRouteNameForModelClass($information->modelClass(), $prefix);
    }
public function getRouteNameForModelInformation(ModelInformationInterface $information, $prefix = false)
    {
        if ( ! $information->modelClass()) {
            throw new \UnexpectedValueException("No model class in information, cannot make route name");
        }

        return $this->getRouteNameForModelClass($information->modelClass(), $prefix);
    }
public function getRouteNameForModelInformation ( ModelInformationInterface $ information , $ prefix = false ) { if ( ! $ information -> modelClass ( ) ) { throw new \ UnexpectedValueException ( "No model class in information, cannot make route name" ) ; } return $ this -> getRouteNameForModelClass ( $ information -> modelClass ( ) , $ prefix ) ; }
Returns the route name for a given set of model information.

@param ModelInformationInterface $information
@param bool                      $prefix
@return string
Returns the route name for a given set of model information .