You are here

public function CurrentUserContext::__construct in Page Manager 8.4

Same name and namespace in other branches
  1. 8 src/EventSubscriber/CurrentUserContext.php \Drupal\page_manager\EventSubscriber\CurrentUserContext::__construct()

Creates LanguageInterfaceContext object.

Parameters

\Drupal\Core\Plugin\Context\ContextRepositoryInterface $context_repository: The context repository service.

File

src/EventSubscriber/CurrentUserContext.php, line 28

Class

CurrentUserContext
Sets the current user as a context.

Namespace

Drupal\page_manager\EventSubscriber

Code

public function __construct(LazyContextRepository $context_repository) {
  $this->contextRepository = $context_repository;
}