You are here

public function SupernovaGenerator::getContext in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/help/tests/modules/help_test/src/SupernovaGenerator.php \Drupal\help_test\SupernovaGenerator::getContext()
  2. 9 core/modules/help/tests/modules/help_test/src/SupernovaGenerator.php \Drupal\help_test\SupernovaGenerator::getContext()

File

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

Class

SupernovaGenerator
Implements a URL generator which always thrown an exception.

Namespace

Drupal\help_test

Code

public function getContext() : RequestContext {
  throw new \Exception();
}