current_route_match

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

Class

Drupal\Core\Routing\CurrentRouteMatch
11 string references to current_route_match
CommentDefaultFormatter::create in core/modules/comment/src/Plugin/Field/FieldFormatter/CommentDefaultFormatter.php
Creates an instance of the plugin.
Drupal::routeMatch in core/lib/Drupal.php
Retrieves the currently active route match object.
EntityController::create in core/lib/Drupal/Core/Entity/Controller/EntityController.php
Instantiates a new instance of this class.
LanguageNegotiationUserAdmin::create in core/modules/user/src/Plugin/LanguageNegotiation/LanguageNegotiationUserAdmin.php
Creates an instance of the plugin.
LocalActionsBlock::create in core/lib/Drupal/Core/Menu/Plugin/Block/LocalActionsBlock.php
Creates an instance of the plugin.

... 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.