class TableDragExampleController

Same name in other branches
  1. 3.x modules/tabledrag_example/src/Controller/TableDragExampleController.php \Drupal\tabledrag_example\Controller\TableDragExampleController
  2. 4.0.x modules/tabledrag_example/src/Controller/TableDragExampleController.php \Drupal\tabledrag_example\Controller\TableDragExampleController

Controller for the tabledrag example.

This controller only deals with the description path.

Hierarchy

Expanded class hierarchy of TableDragExampleController

File

tabledrag_example/src/Controller/TableDragExampleController.php, line 13

Namespace

Drupal\tabledrag_example\Controller
View 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