protected property DbtngExampleAddForm::$currentUser in Examples for Developers 8
Same name and namespace in other branches
- 3.x modules/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
- 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;