public UserCacheContextBase::__construct(AccountInterface $user)
Constructs a new UserCacheContextBase class.
Parameters
\Drupal\Core\Session\AccountInterface $user: The current user.
File
- core/lib/Drupal/Core/Cache/Context/UserCacheContextBase.php, line 29
Class
- UserCacheContextBase
- Base class for user-based cache contexts.
Namespace
Drupal\Core\Cache\Context
Code
public function __construct(AccountInterface $user) { $this->user = $user; }
Please login to continue.