You are here

public static function RouteSubscriber::getSubscribedEvents in Printer and PDF versions for Drupal 8+ 8

Same name and namespace in other branches
  1. 2.x src/Routing/RouteSubscriber.php \Drupal\printable\Routing\RouteSubscriber::getSubscribedEvents()

File

src/Routing/RouteSubscriber.php, line 36

Class

RouteSubscriber
Defines a route subscriber to generate print route for all content entities.

Namespace

Drupal\printable\Routing

Code

public static function getSubscribedEvents() {
  $events[RoutingEvents::ALTER] = 'routes';
  return $events;
}