function LazyContextRepository::__construct
Same name in other branches
- 9 core/lib/Drupal/Core/Plugin/Context/LazyContextRepository.php \Drupal\Core\Plugin\Context\LazyContextRepository::__construct()
- 10 core/lib/Drupal/Core/Plugin/Context/LazyContextRepository.php \Drupal\Core\Plugin\Context\LazyContextRepository::__construct()
- 11.x 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\ContextCode
public function __construct(ContainerInterface $container, array $context_provider_service_ids) {
$this->container = $container;
$this->contextProviderServiceIDs = $context_provider_service_ids;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.