You are here

public function ContextManager::__construct in Context 8.4

Same name and namespace in other branches
  1. 8 src/ContextManager.php \Drupal\context\ContextManager::__construct()
  2. 8.0 src/ContextManager.php \Drupal\context\ContextManager::__construct()

Construct.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The Drupal entity manager service.

\Drupal\context\Entity\ContextRepositoryInterface $contextRepository: The drupal context repository service.

\Drupal\context\Entity\ContextHandlerInterface $contextHandler: The Drupal context handler service.

\Drupal\Core\Entity\EntityFormBuilderInterface $entityFormBuilder: The Drupal EntityFormBuilder service.

\Drupal\Core\Theme\ThemeManagerInterface $themeManager: The Drupal theme manager service.

File

src/ContextManager.php, line 108

Class

ContextManager
This is the manager service for the context module.

Namespace

Drupal\context

Code

public function __construct(EntityTypeManagerInterface $entityTypeManager, ContextRepositoryInterface $contextRepository, ContextHandlerInterface $contextHandler, EntityFormBuilderInterface $entityFormBuilder, ThemeManagerInterface $themeManager, CurrentRouteMatch $currentRouteMatch) {
  $this->entityTypeManager = $entityTypeManager;
  $this->contextRepository = $contextRepository;
  $this->contextHandler = $contextHandler;
  $this->entityFormBuilder = $entityFormBuilder;
  $this->themeManager = $themeManager;
  $this->currentRouteMatch = $currentRouteMatch;
}