You are here

public function DbtngExampleAddForm::__construct in Examples for Developers 8

Same name and namespace in other branches
  1. 3.x modules/dbtng_example/src/Form/DbtngExampleAddForm.php \Drupal\dbtng_example\Form\DbtngExampleAddForm::__construct()

Construct the new form object.

File

dbtng_example/src/Form/DbtngExampleAddForm.php, line 61

Class

DbtngExampleAddForm
Form to add a database entry, with all the interesting fields.

Namespace

Drupal\dbtng_example\Form

Code

public function __construct(DbtngExampleRepository $repository, AccountProxyInterface $current_user) {
  $this->repository = $repository;
  $this->currentUser = $current_user;
}