function TableSortExampleController::__construct

Same name in other branches
  1. 3.x modules/tablesort_example/src/Controller/TableSortExampleController.php \Drupal\tablesort_example\Controller\TableSortExampleController::__construct()
  2. 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

tablesort_example/src/Controller/TableSortExampleController.php, line 38

Class

TableSortExampleController
Controller routines for tablesort example routes.

Namespace

Drupal\tablesort_example\Controller

Code

public function __construct(Connection $database) {
    $this->database = $database;
}