Support a route object and any string as route name
Overrides VersatileGeneratorInterface::supports
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;
}