You are here

public function TableDragExampleSimpleForm::__construct in Examples for Developers 3.x

Same name and namespace in other branches
  1. 8 tabledrag_example/src/Form/TableDragExampleSimpleForm.php \Drupal\tabledrag_example\Form\TableDragExampleSimpleForm::__construct()

Construct a form.

Parameters

\Drupal\Core\Database\Connection $database: The database connection.

File

modules/tabledrag_example/src/Form/TableDragExampleSimpleForm.php, line 37

Class

TableDragExampleSimpleForm
Table drag example simple form.

Namespace

Drupal\tabledrag_example\Form

Code

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