public function ProviderBasedGenerator::supports

Support a route object and any string as route name

Overrides VersatileGeneratorInterface::supports

1 call to ProviderBasedGenerator::supports()
ContentAwareGenerator::supports in drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/ContentAwareGenerator.php
We additionally support empty name and data in parameters and RouteAware content
1 method overrides ProviderBasedGenerator::supports()
ContentAwareGenerator::supports in drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/ContentAwareGenerator.php
We additionally support empty name and data in parameters and RouteAware content

File

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

Class

ProviderBasedGenerator
A Generator that uses a RouteProvider rather than a RouteCollection

Namespace

Symfony\Cmf\Component\Routing

Code

public function supports($name) {
  return is_string($name) || $name instanceof SymfonyRoute;
}