LoginLogoutMenuLink::$currentUser
Same name in other branches
- 9 core/modules/user/src/Plugin/Menu/LoginLogoutMenuLink.php \Drupal\user\Plugin\Menu\LoginLogoutMenuLink::currentUser
- 8.9.x core/modules/user/src/Plugin/Menu/LoginLogoutMenuLink.php \Drupal\user\Plugin\Menu\LoginLogoutMenuLink::currentUser
- 11.x core/modules/user/src/Plugin/Menu/LoginLogoutMenuLink.php \Drupal\user\Plugin\Menu\LoginLogoutMenuLink::currentUser
The current user.
Type: \Drupal\Core\Session\AccountInterface
File
-
core/
modules/ user/ src/ Plugin/ Menu/ LoginLogoutMenuLink.php, line 20
Class
- LoginLogoutMenuLink
- A menu link that shows "Log in" or "Log out" as appropriate.
Namespace
Drupal\user\Plugin\MenuCode
protected $currentUser;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.