public static function CurrentUserContext::getSubscribedEvents in Page Manager 8
Same name and namespace in other branches
- 8.4 src/EventSubscriber/CurrentUserContext.php \Drupal\page_manager\EventSubscriber\CurrentUserContext::getSubscribedEvents()
File
- src/
EventSubscriber/ CurrentUserContext.php, line 74 - Contains \Drupal\page_manager\EventSubscriber\CurrentUserContext.
Class
- CurrentUserContext
- Sets the current user as a context.
Namespace
Drupal\page_manager\EventSubscriberCode
public static function getSubscribedEvents() {
$events[PageManagerEvents::PAGE_CONTEXT][] = 'onPageContext';
return $events;
}