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
Namespace
Drupal\rename_admin_paths\EventSubscriberCode
public static function getSubscribedEvents() {
return [
RoutingEvents::ALTER => [
[
'onRoutesAlter',
-2048,
],
],
];
}