protected property DbtngExampleAddForm::$currentUser in Examples for Developers 3.x
Same name and namespace in other branches
- 8 dbtng_example/src/Form/DbtngExampleAddForm.php \Drupal\dbtng_example\Form\DbtngExampleAddForm::currentUser
The current user.
We'll need this service in order to check if the user is logged in.
Type: \Drupal\Core\Session\AccountProxyInterface
File
- modules/
dbtng_example/ src/ Form/ DbtngExampleAddForm.php, line 38
Class
- DbtngExampleAddForm
- Form to add a database entry, with all the interesting fields.
Namespace
Drupal\dbtng_example\FormCode
protected $currentUser;