class SupernovaGenerator in Drupal 8
Same name and namespace in other branches
- 9 core/modules/help/tests/modules/help_test/src/SupernovaGenerator.php \Drupal\help_test\SupernovaGenerator
Implements a URL generator which always thrown an exception.
Hierarchy
- class \Drupal\help_test\SupernovaGenerator implements UrlGeneratorInterface
Expanded class hierarchy of SupernovaGenerator
1 file declares its use of SupernovaGenerator
- HelpEmptyPageTest.php in core/
modules/ help/ tests/ src/ Kernel/ HelpEmptyPageTest.php
File
- core/
modules/ help/ tests/ modules/ help_test/ src/ SupernovaGenerator.php, line 11
Namespace
Drupal\help_testView source
class SupernovaGenerator implements UrlGeneratorInterface {
/**
* {@inheritdoc}
*/
public function setContext(RequestContext $context) {
throw new \Exception();
}
/**
* {@inheritdoc}
*/
public function getContext() {
throw new \Exception();
}
/**
* {@inheritdoc}
*/
public function generate($name, $parameters = [], $referenceType = self::ABSOLUTE_PATH) {
throw new \Exception();
}
/**
* {@inheritdoc}
*/
public function getPathFromRoute($name, $parameters = []) {
throw new \Exception();
}
/**
* {@inheritdoc}
*/
public function generateFromRoute($name, $parameters = [], $options = [], $collect_bubbleable_metadata = FALSE) {
throw new \Exception();
}
/**
* {@inheritdoc}
*/
public function supports($name) {
throw new \Exception();
}
/**
* {@inheritdoc}
*/
public function getRouteDebugMessage($name, array $parameters = []) {
throw new \Exception();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SupernovaGenerator:: |
public | function | Generates a URL or path for a specific route based on the given parameters. | |
SupernovaGenerator:: |
public | function |
Generates a URL or path for a specific route based on the given parameters. Overrides UrlGeneratorInterface:: |
|
SupernovaGenerator:: |
public | function | Gets the request context. | |
SupernovaGenerator:: |
public | function |
Gets the internal path (system path) for a route. Overrides UrlGeneratorInterface:: |
|
SupernovaGenerator:: |
public | function | Convert a route identifier (name, content object etc) into a string usable for logging and other debug/error messages | |
SupernovaGenerator:: |
public | function | Sets the request context. | |
SupernovaGenerator:: |
public | function | Whether this generator supports the supplied $name. |