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

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

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

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