function MetadataBubblingUrlGenerator::getRouteDebugMessage
Same name in other branches
- 9 core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php \Drupal\Core\Render\MetadataBubblingUrlGenerator::getRouteDebugMessage()
- 8.9.x core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php \Drupal\Core\Render\MetadataBubblingUrlGenerator::getRouteDebugMessage()
Gets either the route name or a string based on the route object.
Parameters
string|\Symfony\Component\Routing\Route $name: The route "name" which may also be an object or anything.
array $parameters: Route parameters array.
Return value
string Either the route name, or a string that uniquely identifies the route.
Deprecated
in drupal:10.1.0 and is removed from drupal:11.0.0. Use the route name instead.
See also
https://www.drupal.org/node/3172303
File
-
core/
lib/ Drupal/ Core/ Render/ MetadataBubblingUrlGenerator.php, line 150
Class
- MetadataBubblingUrlGenerator
- Decorator for the URL generator, which bubbles bubbleable URL metadata.
Namespace
Drupal\Core\RenderCode
public function getRouteDebugMessage($name, array $parameters = []) {
@trigger_error(__METHOD__ . '() is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Use the route name instead. See https://www.drupal.org/node/3172303', E_USER_DEPRECATED);
return $this->urlGenerator
->getRouteDebugMessage($name, $parameters);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.