public function SupernovaGenerator::setContext in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/help/tests/modules/help_test/src/SupernovaGenerator.php \Drupal\help_test\SupernovaGenerator::setContext()
Sets the request context.
Parameters
RequestContext $context The context:
Overrides RequestContextAwareInterface::setContext
File
- core/
modules/ help/ tests/ modules/ help_test/ src/ SupernovaGenerator.php, line 21 - Contains \Drupal\help_test\SupernovaGenerator.
Class
- SupernovaGenerator
- Implements a URL generator which always thrown an exception.
Namespace
Drupal\help_testCode
public function setContext(RequestContext $context) {
throw new \Exception();
}