function SupernovaGenerator::getPathFromRoute

Same name in other branches
  1. 8.9.x core/modules/help/tests/modules/help_test/src/SupernovaGenerator.php \Drupal\help_test\SupernovaGenerator::getPathFromRoute()
  2. 10 core/modules/help/tests/modules/help_test/src/SupernovaGenerator.php \Drupal\help_test\SupernovaGenerator::getPathFromRoute()
  3. 11.x core/modules/help/tests/modules/help_test/src/SupernovaGenerator.php \Drupal\help_test\SupernovaGenerator::getPathFromRoute()

Overrides UrlGeneratorInterface::getPathFromRoute

File

core/modules/help/tests/modules/help_test/src/SupernovaGenerator.php, line 37

Class

SupernovaGenerator
Implements a URL generator which always thrown an exception.

Namespace

Drupal\help_test

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.