public function 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 RouteAwareInterface object

Return value

string

Overrides ProviderBasedGenerator::getRouteDebugMessage

File

drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/ContentAwareGenerator.php, line 242

Class

ContentAwareGenerator
A generator that tries to generate routes from object, route names or content objects or names.

Namespace

Symfony\Cmf\Component\Routing

Code

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);
}