You are here

public static function RouteParamContext::getSubscribedEvents in Page Manager 8

Same name and namespace in other branches
  1. 8.4 src/EventSubscriber/RouteParamContext.php \Drupal\page_manager\EventSubscriber\RouteParamContext::getSubscribedEvents()

File

src/EventSubscriber/RouteParamContext.php, line 95
Contains \Drupal\page_manager\EventSubscriber\RouteParamContext.

Class

RouteParamContext
Sets values from the route parameters as a context.

Namespace

Drupal\page_manager\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events[PageManagerEvents::PAGE_CONTEXT][] = 'onPageContext';
  return $events;
}