function LazyContextRepository::__construct
Same name and namespace in other branches
- 11.x 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()
- 9 core/lib/Drupal/Core/Plugin/Context/LazyContextRepository.php \Drupal\Core\Plugin\Context\LazyContextRepository::__construct()
- 8.9.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[] $contextProviderServiceIDs: The set of the available context provider service IDs.
File
-
core/
lib/ Drupal/ Core/ Plugin/ Context/ LazyContextRepository.php, line 27
Class
- LazyContextRepository
- Provides a context repository which uses context provider services.
Namespace
Drupal\Core\Plugin\ContextCode
public function __construct(protected ContainerInterface $container, protected array $contextProviderServiceIDs) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.