You are here

public function MetadataBubblingUrlGenerator::supports in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php \Drupal\Core\Render\MetadataBubblingUrlGenerator::supports()

Whether this generator supports the supplied $name.

This check does not need to look if the specific instance can be resolved to a route, only whether the router can generate routes from objects of this class.

Parameters

mixed $name The route "name" which may also be an object or anything:

Return value

bool

Overrides VersatileGeneratorInterface::supports

File

core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php, line 120
Contains \Drupal\Core\Render\MetadataBubblingUrlGenerator.

Class

MetadataBubblingUrlGenerator
Decorator for the URL generator, which bubbles bubbleable URL metadata.

Namespace

Drupal\Core\Render

Code

public function supports($name) {
  return $this->urlGenerator
    ->supports($name);
}