function TableDragExampleRootLeafForm::__construct

Same name in other branches
  1. 3.x modules/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;
}