Convert a route identifier (name, content object etc) into a string usable for logging and other debug/error messages
mixed $name:
array $parameters which should contain a content field containing: a RouteAwareInterface object
string
Overrides ProviderBasedGenerator::getRouteDebugMessage
public function getRouteDebugMessage($name, array $parameters = array()) {
if (empty($name) && isset($parameters['content_id'])) {
return 'Content id ' . $parameters['content_id'];
}
if ($name instanceof RouteAwareInterface) {
return 'Route aware content ' . $name;
}
return parent::getRouteDebugMessage($name, $parameters);
}