You are here

public function VersatileGeneratorInterface::supports in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony-cmf/routing/VersatileGeneratorInterface.php \Symfony\Cmf\Component\Routing\VersatileGeneratorInterface::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

5 methods override VersatileGeneratorInterface::supports()
DynamicRouter::supports in vendor/symfony-cmf/routing/DynamicRouter.php
Delegate to our generator
MetadataBubblingUrlGenerator::supports in core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php
Whether this generator supports the supplied $name.
ProviderBasedGenerator::supports in vendor/symfony-cmf/routing/ProviderBasedGenerator.php
Support a route object and any string as route name
SupernovaGenerator::supports in core/modules/help/tests/modules/help_test/src/SupernovaGenerator.php
Whether this generator supports the supplied $name.
UrlGenerator::supports in core/lib/Drupal/Core/Routing/UrlGenerator.php
Whether this generator supports the supplied $name.

File

vendor/symfony-cmf/routing/VersatileGeneratorInterface.php, line 33

Class

VersatileGeneratorInterface
This generator is able to handle more than string route names as symfony core supports them.

Namespace

Symfony\Cmf\Component\Routing

Code

public function supports($name);