You are here

public static function RenameAdminPathsEventSubscriber::getSubscribedEvents in Rename Admin Paths 8.2

Use a very low priority so we are sure all routes are correctly marked as admin route which is mostly done in other event subscribers like the AdminRouteSubscriber

Return value

array

1 call to RenameAdminPathsEventSubscriber::getSubscribedEvents()
RenameAdminPathEventSubscriberTest::testGetSubscribedEvents in tests/src/Unit/EventSubscriber/RenameAdminPathEventSubscriberTest.php

File

src/EventSubscriber/RenameAdminPathsEventSubscriber.php, line 40

Class

RenameAdminPathsEventSubscriber

Namespace

Drupal\rename_admin_paths\EventSubscriber

Code

public static function getSubscribedEvents() {
  return [
    RoutingEvents::ALTER => [
      [
        'onRoutesAlter',
        -2048,
      ],
    ],
  ];
}