public function TableSortExampleController::__construct in Examples for Developers 8
Same name and namespace in other branches
- 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\ControllerCode
public function __construct(Connection $database) {
$this->database = $database;
}