class TableDragExampleController
Controller for the tabledrag example.
This controller only deals with the description path.
Hierarchy
- class \Drupal\tabledrag_example\Controller\TableDragExampleController uses \Drupal\examples\Utility\DescriptionTemplateTrait extends \Drupal\Core\Controller\ControllerBase
Expanded class hierarchy of TableDragExampleController
File
-
modules/
tabledrag_example/ src/ Controller/ TableDragExampleController.php, line 13
Namespace
Drupal\tabledrag_example\ControllerView source
class TableDragExampleController extends ControllerBase {
use DescriptionTemplateTrait;
/**
* {@inheritdoc}
*/
protected function getModuleName() {
return 'tabledrag_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 | |
| TableDragExampleController::getModuleName | protected | function | Name of our module. | Overrides DescriptionTemplateTrait::getModuleName |