You are here

public function LayoutBuilderIsActiveCacheContext::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/Cache/LayoutBuilderIsActiveCacheContext.php \Drupal\layout_builder\Cache\LayoutBuilderIsActiveCacheContext::__construct()
  2. 9 core/modules/layout_builder/src/Cache/LayoutBuilderIsActiveCacheContext.php \Drupal\layout_builder\Cache\LayoutBuilderIsActiveCacheContext::__construct()

LayoutBuilderCacheContext constructor.

Parameters

\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.

File

core/modules/layout_builder/src/Cache/LayoutBuilderIsActiveCacheContext.php, line 37

Class

LayoutBuilderIsActiveCacheContext
Determines whether Layout Builder is active for a given entity type or not.

Namespace

Drupal\layout_builder\Cache

Code

public function __construct(RouteMatchInterface $route_match) {
  $this->routeMatch = $route_match;
}