public function 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

2 methods override VersatileGeneratorInterface::supports()
DynamicRouter::supports in drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/DynamicRouter.php
Delegate to our generator
ProviderBasedGenerator::supports in drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/ProviderBasedGenerator.php
Support a route object and any string as route name

File

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

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);