You are here

public function LazyContextRepository::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Plugin/Context/LazyContextRepository.php \Drupal\Core\Plugin\Context\LazyContextRepository::__construct()

Constructs a LazyContextRepository object.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The current service container.

string[] $context_provider_service_ids: The set of the available context provider service IDs.

File

core/lib/Drupal/Core/Plugin/Context/LazyContextRepository.php, line 42

Class

LazyContextRepository
Provides a context repository which uses context provider services.

Namespace

Drupal\Core\Plugin\Context

Code

public function __construct(ContainerInterface $container, array $context_provider_service_ids) {
  $this->container = $container;
  $this->contextProviderServiceIDs = $context_provider_service_ids;
}