HooksExampleController.php
Same filename in other branches
Namespace
Drupal\hooks_example\ControllerFile
-
modules/
hooks_example/ src/ Controller/ HooksExampleController.php
View source
<?php
namespace Drupal\hooks_example\Controller;
use Drupal\examples\Utility\DescriptionTemplateTrait;
/**
* Controller for Hooks example description page.
*
* This class uses the DescriptionTemplateTrait to display text we put in the
* templates/description.html.twig file.
*/
class HooksExampleController {
use DescriptionTemplateTrait;
/**
* {@inheritdoc}
*/
protected function getModuleName() {
return 'hooks_example';
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
HooksExampleController | Controller for Hooks example description page. |