You are here

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

Same name and namespace in other branches
  1. 8 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 71

Class

PermissionsByEntityKernelEventSubscriber
Class PermissionsByEntityKernelEventSubscriber.

Namespace

Drupal\permissions_by_entity\EventSubscriber

Code

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