You are here

public static function PermissionsByEntityKernelEventSubscriber::getSubscribedEvents in Permissions by Term 8

Same name and namespace in other branches
  1. 8.2 modules/permissions_by_entity/src/EventSubscriber/PermissionsByEntityKernelEventSubscriber.php \Drupal\permissions_by_entity\EventSubscriber\PermissionsByEntityKernelEventSubscriber::getSubscribedEvents()

This is required to run before the DynamicPageCacheSubscriber as otherwise the response would be cached which can lead to false access.

See also

DynamicPageCacheSubscriber

File

modules/permissions_by_entity/src/EventSubscriber/PermissionsByEntityKernelEventSubscriber.php, line 70

Class

PermissionsByEntityKernelEventSubscriber
Class PermissionsByEntityKernelEventSubscriber.

Namespace

Drupal\permissions_by_entity\EventSubscriber

Code

public static function getSubscribedEvents() {
  return [
    KernelEvents::REQUEST => [
      'onKernelRequest',
      28,
    ],
  ];
}