function TableSortExampleController::__construct
Same name in other branches
- 8.x-1.x tablesort_example/src/Controller/TableSortExampleController.php \Drupal\tablesort_example\Controller\TableSortExampleController::__construct()
- 4.0.x modules/tablesort_example/src/Controller/TableSortExampleController.php \Drupal\tablesort_example\Controller\TableSortExampleController::__construct()
TableSortExampleController constructor.
Parameters
\Drupal\Core\Database\Connection $database: The database connection.
File
-
modules/
tablesort_example/ src/ Controller/ TableSortExampleController.php, line 38
Class
- TableSortExampleController
- Controller routines for tablesort example routes.
Namespace
Drupal\tablesort_example\ControllerCode
public function __construct(Connection $database) {
$this->database = $database;
}