public function ProviderBasedGenerator::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 VersatileGeneratorInterface::getRouteDebugMessage

1 call to ProviderBasedGenerator::getRouteDebugMessage()
ContentAwareGenerator::getRouteDebugMessage in drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/ContentAwareGenerator.php
Convert a route identifier (name, content object etc) into a string usable for logging and other debug/error messages
1 method overrides ProviderBasedGenerator::getRouteDebugMessage()
ContentAwareGenerator::getRouteDebugMessage in drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/ContentAwareGenerator.php
Convert a route identifier (name, content object etc) into a string usable for logging and other debug/error messages

File

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

Class

ProviderBasedGenerator
A Generator that uses a RouteProvider rather than a RouteCollection

Namespace

Symfony\Cmf\Component\Routing

Code

public function getRouteDebugMessage($name, array $parameters = array()) {
  if ($name instanceof RouteObjectInterface) {
    return 'Route with key ' . $name
      ->getRouteKey();
  }
  if ($name instanceof SymfonyRoute) {
    return 'Route with pattern ' . $name
      ->getPattern();
  }
  return $name;
}