public static function ContentModerationRouteSubscriber::getSubscribedEvents in Drupal 8
Same name and namespace in other branches
- 9 core/modules/content_moderation/src/Routing/ContentModerationRouteSubscriber.php \Drupal\content_moderation\Routing\ContentModerationRouteSubscriber::getSubscribedEvents()
Overrides RouteSubscriberBase::getSubscribedEvents
File
- core/
modules/ content_moderation/ src/ Routing/ ContentModerationRouteSubscriber.php, line 105
Class
- ContentModerationRouteSubscriber
- Subscriber for moderated revisionable entity forms.
Namespace
Drupal\content_moderation\RoutingCode
public static function getSubscribedEvents() {
$events = parent::getSubscribedEvents();
// This needs to run after that EntityResolverManager has set the route
// entity type.
$events[RoutingEvents::ALTER] = [
'onAlterRoutes',
-200,
];
return $events;
}