You are here

public function TableSortExampleController::__construct in Examples for Developers 8

Same name and namespace in other branches
  1. 3.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;
}