NodeViewController::$currentUser
Same name in other branches
- 9 core/modules/node/src/Controller/NodeViewController.php \Drupal\node\Controller\NodeViewController::currentUser
- 10 core/modules/node/src/Controller/NodeViewController.php \Drupal\node\Controller\NodeViewController::currentUser
- 11.x core/modules/node/src/Controller/NodeViewController.php \Drupal\node\Controller\NodeViewController::currentUser
The current user.
Type: \Drupal\Core\Session\AccountInterface
File
-
core/
modules/ node/ src/ Controller/ NodeViewController.php, line 23
Class
- NodeViewController
- Defines a controller to render a single node.
Namespace
Drupal\node\ControllerCode
protected $currentUser;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.