public function TableDragExampleRootLeafForm::__construct in Examples for Developers 8
Same name and namespace in other branches
- 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
- tabledrag_example/
src/ Form/ TableDragExampleRootLeafForm.php, line 55
Class
- TableDragExampleRootLeafForm
- Table drag example root leaf form.
Namespace
Drupal\tabledrag_example\FormCode
public function __construct(Connection $database, RendererInterface $render) {
$this->database = $database;
$this->render = $render;
}