You are here

public function SupernovaGenerator::supports in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/help/tests/modules/help_test/src/SupernovaGenerator.php \Drupal\help_test\SupernovaGenerator::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

Overrides VersatileGeneratorInterface::supports

File

core/modules/help/tests/modules/help_test/src/SupernovaGenerator.php, line 56
Contains \Drupal\help_test\SupernovaGenerator.

Class

SupernovaGenerator
Implements a URL generator which always thrown an exception.

Namespace

Drupal\help_test

Code

public function supports($name) {
  throw new \Exception();
}