context.repository

Same name in other branches
  1. 9 core/core.services.yml \context.repository
  2. 8.9.x core/core.services.yml \context.repository

Class

Drupal\Core\Plugin\Context\LazyContextRepository

Tags

  • service_id_collector
10 string references to context.repository
BlockAccessControlHandler::createInstance in core/modules/block/src/BlockAccessControlHandler.php
Instantiates a new instance of this entity handler.
BlockForm::create in core/modules/block/src/BlockForm.php
Instantiates a new instance of this class.
BlockLibraryController::create in core/modules/block/src/Controller/BlockLibraryController.php
Instantiates a new instance of the implementing class using autowiring.
ConfigureBlockFormBase::create in core/modules/layout_builder/src/Form/ConfigureBlockFormBase.php
Instantiates a new instance of this class.
ContextProvidersPass::process in core/lib/Drupal/Core/DependencyInjection/Compiler/ContextProvidersPass.php
Passes the service IDs of all context providers to the context repository.

... See full list

File

core/core.services.yml

View source
  1. class: Drupal\Core\Plugin\Context\LazyContextRepository
  2. arguments:
  3. - '@service_container'
  4. tags:
  5. - { name: service_id_collector, tag: context_provider }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.