You are here

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

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

Construct a form.

Parameters

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

\Drupal\Core\Render\RendererInterface $render: The renderer.

File

modules/tabledrag_example/src/Form/TableDragExampleRootLeafForm.php, line 55

Class

TableDragExampleRootLeafForm
Table drag example root leaf form.

Namespace

Drupal\tabledrag_example\Form

Code

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