class SupernovaGenerator

Same name in other branches
  1. 9 core/modules/help/tests/modules/help_test/src/SupernovaGenerator.php \Drupal\help_test\SupernovaGenerator
  2. 8.9.x core/modules/help/tests/modules/help_test/src/SupernovaGenerator.php \Drupal\help_test\SupernovaGenerator
  3. 11.x 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 \Drupal\Core\Routing\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_test
View source
class SupernovaGenerator implements UrlGeneratorInterface {
    
    /**
     * {@inheritdoc}
     */
    public function setContext(RequestContext $context) {
        throw new \Exception();
    }
    
    /**
     * {@inheritdoc}
     */
    public function getContext() : RequestContext {
        throw new \Exception();
    }
    
    /**
     * {@inheritdoc}
     */
    public function generate($name, $parameters = [], $referenceType = self::ABSOLUTE_PATH) : string {
        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();
    }

}

Members


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