UserCacheContextBase::$user
Same name in other branches
- 9 core/lib/Drupal/Core/Cache/Context/UserCacheContextBase.php \Drupal\Core\Cache\Context\UserCacheContextBase::user
- 8.9.x core/lib/Drupal/Core/Cache/Context/UserCacheContextBase.php \Drupal\Core\Cache\Context\UserCacheContextBase::user
- 11.x core/lib/Drupal/Core/Cache/Context/UserCacheContextBase.php \Drupal\Core\Cache\Context\UserCacheContextBase::user
The account object.
Type: \Drupal\Core\Session\AccountInterface
File
-
core/
lib/ Drupal/ Core/ Cache/ Context/ UserCacheContextBase.php, line 21
Class
- UserCacheContextBase
- Base class for user-based cache contexts.
Namespace
Drupal\Core\Cache\ContextCode
protected $user;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.