function UrlGenerator::getRouteDebugMessage
File
-
core/
lib/ Drupal/ Core/ Routing/ UrlGenerator.php, line 448
Class
- UrlGenerator
- Generates URLs from route names and parameters.
Namespace
Drupal\Core\RoutingCode
public function getRouteDebugMessage($name, array $parameters = []) {
if (is_scalar($name)) {
return $name;
}
if ($name instanceof SymfonyRoute) {
return 'Route with pattern ' . $name->getPath();
}
return serialize($name);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.