You are here

public static function LayoutBuilderRestrictionsSubscriber::getSubscribedEvents in Layout Builder Restrictions 8

File

src/EventSubscriber/LayoutBuilderRestrictionsSubscriber.php, line 114

Class

LayoutBuilderRestrictionsSubscriber
Layout builder restrictions event subscriber.

Namespace

Drupal\layout_builder_restrictions\EventSubscriber

Code

public static function getSubscribedEvents() {
  return [
    // Make sure we are before the main content view.
    KernelEvents::VIEW => [
      'onKernelView',
      1,
    ],
  ];
}