You are here

public function ContentAwareGenerator::supports in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony-cmf/routing/ContentAwareGenerator.php \Symfony\Cmf\Component\Routing\ContentAwareGenerator::supports()

We additionally support empty name and data in parameters and RouteAware content

Overrides ProviderBasedGenerator::supports

File

vendor/symfony-cmf/routing/ContentAwareGenerator.php, line 276

Class

ContentAwareGenerator
A generator that tries to generate routes from object, route names or content objects or names.

Namespace

Symfony\Cmf\Component\Routing

Code

public function supports($name) {
  return !$name || parent::supports($name) || $name instanceof RouteReferrersReadInterface;
}