You are here

public function SupernovaGenerator::getPathFromRoute 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::getPathFromRoute()

Gets the internal path (system path) for a route.

Parameters

string|\Symfony\Component\Routing\Route $name: The route name or a route object.

array $parameters: An array of parameters as passed to \Symfony\Component\Routing\Generator\UrlGeneratorInterface::generate().

Return value

string The internal Drupal path corresponding to the route.

Overrides UrlGeneratorInterface::getPathFromRoute

File

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

Class

SupernovaGenerator
Implements a URL generator which always thrown an exception.

Namespace

Drupal\help_test

Code

public function getPathFromRoute($name, $parameters = array()) {
  throw new \Exception();
}