The current user service.
Type: \Drupal\Core\Session\AccountInterface
File
- core/lib/Drupal/Core/Controller/ControllerBase.php, line 89
Class
- ControllerBase
- Utility base class for thin controllers.
Namespace
Drupal\Core\Controller
Code
protected $currentUser;
Please login to continue.