function DbtngExampleAddForm::__construct
Same name in other branches
- 4.0.x modules/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\FormCode
public function __construct(DbtngExampleRepository $repository, AccountProxyInterface $current_user) {
$this->repository = $repository;
$this->currentUser = $current_user;
}