public static function RouteSubscriber::getSubscribedEvents in Commerce Shipping 8.2
Overrides RouteSubscriberBase::getSubscribedEvents
File
- src/
EventSubscriber/ RouteSubscriber.php, line 17
Class
- RouteSubscriber
- Re-add the route requirement for the shipment collection route.
Namespace
Drupal\commerce_shipping\EventSubscriberCode
public static function getSubscribedEvents() {
$events = parent::getSubscribedEvents();
// Ensure to run after the Views route subscriber.
// @see \Drupal\views\EventSubscriber\RouteSubscriber.
$events[RoutingEvents::ALTER] = [
'onAlterRoutes',
-200,
];
return $events;
}