You are here

class SupernovaGenerator 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

Implements a URL generator which always thrown an exception.

Hierarchy

Expanded class hierarchy of SupernovaGenerator

1 file declares its use of SupernovaGenerator
HelpEmptyPageTest.php in core/modules/help/src/Tests/HelpEmptyPageTest.php
Contains \Drupal\help\Tests\HelpEmptyPageTest.

File

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

Namespace

Drupal\help_test
View 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 = array(), $referenceType = self::ABSOLUTE_PATH) {
    throw new \Exception();
  }

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

  /**
   * {@inheritdoc}
   */
  public function generateFromRoute($name, $parameters = array(), $options = array(), $collect_bubbleable_metadata = FALSE) {
    throw new \Exception();
  }

  /**
   * {@inheritdoc}
   */
  public function supports($name) {
    throw new \Exception();
  }

  /**
   * {@inheritdoc}
   */
  public function getRouteDebugMessage($name, array $parameters = array()) {
    throw new \Exception();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
SupernovaGenerator::generate public function Generates a URL or path for a specific route based on the given parameters. Overrides UrlGeneratorInterface::generate
SupernovaGenerator::generateFromRoute public function Generates a URL or path for a specific route based on the given parameters. Overrides UrlGeneratorInterface::generateFromRoute
SupernovaGenerator::getContext public function Gets the request context. Overrides RequestContextAwareInterface::getContext
SupernovaGenerator::getPathFromRoute public function Gets the internal path (system path) for a route. Overrides UrlGeneratorInterface::getPathFromRoute
SupernovaGenerator::getRouteDebugMessage public function Convert a route identifier (name, content object etc) into a string usable for logging and other debug/error messages Overrides VersatileGeneratorInterface::getRouteDebugMessage
SupernovaGenerator::setContext public function Sets the request context. Overrides RequestContextAwareInterface::setContext
SupernovaGenerator::supports public function Whether this generator supports the supplied $name. Overrides VersatileGeneratorInterface::supports
UrlGeneratorInterface::ABSOLUTE_PATH constant Generates an absolute path, e.g. "/dir/file".
UrlGeneratorInterface::ABSOLUTE_URL constant Generates an absolute URL, e.g. "http://example.com/dir/file".
UrlGeneratorInterface::NETWORK_PATH constant Generates a network path, e.g. "//example.com/dir/file". Such reference reuses the current scheme but specifies the host.
UrlGeneratorInterface::RELATIVE_PATH constant Generates a relative path based on the current request path, e.g. "../parent-file".