/**
  * {@inheritdoc}
  */
 public static function getSubscribedEvents()
 {
     $events = parent::getSubscribedEvents();
     //  ContentTranslationRouteSubscriber is -100, make sure we are later.
     $events[RoutingEvents::ALTER] = array('onAlterRoutes', -211);
     return $events;
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public static function getSubscribedEvents() {
   $events = parent::getSubscribedEvents();
   // Ensure to run after the views route subscriber.
   // @see \Drupal\views\EventSubscriber
   $events[RoutingEvents::ALTER] = ['onAlterRoutes', -180];
   return $events;
 }
Exemplo n.º 3
0
 /**
  * {@inheritdoc}
  */
 public static function getSubscribedEvents()
 {
     $events = parent::getSubscribedEvents();
     $events[KernelEvents::VIEW][] = array('onHtmlPage', 75);
     $events[RoutingEvents::FINISHED] = array('routeRebuildFinished');
     return $events;
 }
 /**
  * {@inheritdoc}
  */
 public static function getSubscribedEvents()
 {
     $events = parent::getSubscribedEvents();
     // Should run after AdminRouteSubscriber so the routes can inherit admin
     // status of the edit routes on entities. Therefore priority -210.
     $events[RoutingEvents::ALTER] = array('onAlterRoutes', -210);
     return $events;
 }
 /**
  * {@inheritdoc}
  */
 public static function getSubscribedEvents()
 {
     $events = parent::getSubscribedEvents();
     // \Drupal\config_translation\Routing\RouteSubscriber is -110,
     // make sure we are later.
     $events[RoutingEvents::ALTER] = array('onAlterRoutes', -111);
     return $events;
 }
 /**
  * {@inheritdoc}
  */
 public static function getSubscribedEvents()
 {
     $events = parent::getSubscribedEvents();
     // Use a lower priority than \Drupal\views\EventSubscriber\RouteSubscriber
     // to ensure we add the requirement to their routes.
     $events[RoutingEvents::ALTER] = ['onAlterRoutes', -300];
     return $events;
 }
Exemplo n.º 7
0
 /**
  * {@inheritdoc}
  */
 public static function getSubscribedEvents()
 {
     $events = parent::getSubscribedEvents();
     $events[RoutingEvents::FINISHED] = array('routeRebuildFinished');
     // Ensure to run after the entity resolver subscriber
     // @see \Drupal\Core\EventSubscriber\EntityRouteAlterSubscriber
     $events[RoutingEvents::ALTER] = ['onAlterRoutes', -175];
     return $events;
 }
 /**
  * {@inheritdoc}
  */
 public static function getSubscribedEvents()
 {
     $events = parent::getSubscribedEvents();
     // Use a lower priority than \Drupal\field_ui\Routing\RouteSubscriber or
     // \Drupal\views\EventSubscriber\RouteSubscriber to ensure we add the option
     // to their routes.
     $events[RoutingEvents::ALTER] = array('onAlterRoutes', -200);
     return $events;
 }
 /**
  * {@inheritdoc}
  */
 public static function getSubscribedEvents()
 {
     $events = parent::getSubscribedEvents();
     // Use a higher priority than \Drupal\field_ui\Routing\RouteSubscriber or
     // \Drupal\views\EventSubscriber\RouteSubscriber to ensure we add the
     // option to their routes.
     // @todo https://drupal.org/node/2158571
     $events[RoutingEvents::ALTER] = array('onAlterRoutes', -200);
     return $events;
 }
 /**
  * {@inheritdoc}
  */
 public static function getSubscribedEvents()
 {
     $events = parent::getSubscribedEvents();
     $events[RoutingEvents::ALTER] = array('onAlterRoutes', -100);
     return $events;
 }