You are here

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

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

Construct the new form object.

File

modules/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;
}