function TableSortExampleController::create
Same name in other branches
- 3.x modules/tablesort_example/src/Controller/TableSortExampleController.php \Drupal\tablesort_example\Controller\TableSortExampleController::create()
Overrides AutowireTrait::create
File
-
modules/
tablesort_example/ src/ Controller/ TableSortExampleController.php, line 24
Class
- TableSortExampleController
- Controller routines for tablesort example routes.
Namespace
Drupal\tablesort_example\ControllerCode
public static function create(ContainerInterface $container) {
$controller = new static($container->get('database'));
$controller->setStringTranslation($container->get('string_translation'));
return $controller;
}