public static function RouteSubscriber::getSubscribedEvents in Printer and PDF versions for Drupal 8+ 8
Same name and namespace in other branches
- 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\RoutingCode
public static function getSubscribedEvents() {
$events[RoutingEvents::ALTER] = 'routes';
return $events;
}