You are here

public function LayoutBuilderRestrictionsSubscriber::__construct in Layout Builder Restrictions 8

LayoutBuilderRestrictionsSubscriber constructor.

File

src/EventSubscriber/LayoutBuilderRestrictionsSubscriber.php, line 34

Class

LayoutBuilderRestrictionsSubscriber
Layout builder restrictions event subscriber.

Namespace

Drupal\layout_builder_restrictions\EventSubscriber

Code

public function __construct(CurrentRouteMatch $route_match, ModuleHandlerInterface $handler) {
  $this->routeMatch = $route_match;
  $this->moduleHandler = $handler;
}