public function ContentAwareGenerator::getRouteDebugMessage in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony-cmf/routing/ContentAwareGenerator.php \Symfony\Cmf\Component\Routing\ContentAwareGenerator::getRouteDebugMessage()
Convert a route identifier (name, content object etc) into a string usable for logging and other debug/error messages
Parameters
mixed $name:
array $parameters which should contain a content field containing: a RouteReferrersReadInterface object
Return value
string
Overrides ProviderBasedGenerator::getRouteDebugMessage
File
- vendor/
symfony-cmf/ routing/ ContentAwareGenerator.php, line 284
Class
- ContentAwareGenerator
- A generator that tries to generate routes from object, route names or content objects or names.
Namespace
Symfony\Cmf\Component\RoutingCode
public function getRouteDebugMessage($name, array $parameters = array()) {
if (empty($name) && isset($parameters['content_id'])) {
return 'Content id ' . $parameters['content_id'];
}
if ($name instanceof RouteReferrersReadInterface) {
return 'Route aware content ' . parent::getRouteDebugMessage($name, $parameters);
}
return parent::getRouteDebugMessage($name, $parameters);
}