cache_context.route.name

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

Class

Drupal\Core\Cache\Context\RouteNameCacheContext

Tags

  • cache.context

File

core/core.services.yml

View source
  1. class: Drupal\Core\Cache\Context\RouteNameCacheContext
  2. arguments:
  3. - '@current_route_match'
  4. tags:
  5. - { name: cache.context }

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