public UrlGenerator::getRouteDebugMessage($name, array $parameters = array())
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 RouteReferrersReadInterface object
string
Overrides VersatileGeneratorInterface::getRouteDebugMessage
public function getRouteDebugMessage($name, array $parameters = array()) { if (is_scalar($name)) { return $name; } if ($name instanceof SymfonyRoute) { return 'Route with pattern ' . $name->getPath(); } return serialize($name); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Routing!UrlGenerator.php/function/UrlGenerator::getRouteDebugMessage/8.1.x