class RestExampleHelpController
Same name in other branches
- 3.x modules/rest_example/src/Controller/RestExampleHelpController.php \Drupal\rest_example\Controller\RestExampleHelpController
Provides a help page for the REST Examples module.
Hierarchy
- class \Drupal\rest_example\Controller\RestExampleHelpController implements \Drupal\Core\DependencyInjection\ContainerInjectionInterface uses \Drupal\examples\Utility\DescriptionTemplateTrait
Expanded class hierarchy of RestExampleHelpController
Related topics
File
-
modules/
rest_example/ src/ Controller/ RestExampleHelpController.php, line 14
Namespace
Drupal\rest_example\ControllerView source
class RestExampleHelpController implements ContainerInjectionInterface {
use DescriptionTemplateTrait;
/**
* {@inheritdoc}
*/
public static function create(ContainerInterface $container) {
return new static();
}
/**
* {@inheritdoc}
*/
protected function getModuleName() {
return 'rest_example';
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
DescriptionTemplateTrait::description | public | function | Generate a render array with our templated content. | ||
DescriptionTemplateTrait::getDescriptionTemplatePath | protected | function | Get full path to the template. | ||
DescriptionTemplateTrait::getDescriptionVariables | protected | function | Variables to act as context to the twig template file. | 1 | |
RestExampleHelpController::create | public static | function | Instantiates a new instance of this class. | Overrides ContainerInjectionInterface::create | |
RestExampleHelpController::getModuleName | protected | function | Name of our module. | Overrides DescriptionTemplateTrait::getModuleName |