You are here

service views.route_subscriber in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/views.services.yml \views.route_subscriber
  2. 9 core/modules/views/views.services.yml \views.route_subscriber

Class

Drupal\views\EventSubscriber\RouteSubscriber

Tags

  • event_subscriber
2 string references to views.route_subscriber
DisplayPageTest::testPageRouterItems in core/modules/views/tests/src/Kernel/Plugin/DisplayPageTest.php
Checks that the router items are properly registered.
views_invalidate_cache in core/modules/views/views.module
Invalidate the views cache, forcing a rebuild on the next grab of table data.

File

core/modules/views/views.services.yml
core/modules/views/views.services.yml

View source
  1. class: Drupal\views\EventSubscriber\RouteSubscriber
  2. arguments:
  3. - '@entity_type.manager'
  4. - '@state'
  5. tags:
  6. - { name: event_subscriber }