UserCacheContextBase::__construct

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;
}
doc_Drupal
2016-10-29 09:52:20
Comments
Leave a Comment

Please login to continue.