current_route_match

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

Class

Drupal\Core\Routing\CurrentRouteMatch
22 string references to current_route_match
BlockLibraryController::create in core/modules/block/src/Controller/BlockLibraryController.php
Instantiates a new instance of the implementing class using autowiring.
BookNavigationBlock::create in core/modules/book/src/Plugin/Block/BookNavigationBlock.php
Creates an instance of the plugin.
BulkForm::create in core/modules/views/src/Plugin/views/field/BulkForm.php
Creates an instance of the plugin.
CommentDefaultFormatter::create in core/modules/comment/src/Plugin/Field/FieldFormatter/CommentDefaultFormatter.php
Creates an instance of the plugin.
ConfigTranslationFormTest::testConfigTranslationFormAlter in core/modules/config_translation/tests/src/Kernel/ConfigTranslationFormTest.php
Tests altering of the configuration translation forms.

... See full list

File

core/core.services.yml

View source
  1. class: Drupal\Core\Routing\CurrentRouteMatch
  2. arguments:
  3. - '@request_stack'

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