You are here

public function ContextProviderBase::__construct in Core Context 8

ContextProviderBase constructor.

Parameters

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

1 call to ContextProviderBase::__construct()
RouteAwareContextProviderBase::__construct in src/ContextProvider/RouteAwareContextProviderBase.php
RouteAwareContextProviderBase constructor.
1 method overrides ContextProviderBase::__construct()
RouteAwareContextProviderBase::__construct in src/ContextProvider/RouteAwareContextProviderBase.php
RouteAwareContextProviderBase constructor.

File

src/ContextProvider/ContextProviderBase.php, line 27

Class

ContextProviderBase
Provides a base class for context providers.

Namespace

Drupal\core_context\ContextProvider

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager) {
  $this->entityTypeManager = $entity_type_manager;
}