public function LayoutBuilderIsActiveCacheContext::__construct in Drupal 10
Same name and namespace in other branches
- 8 core/modules/layout_builder/src/Cache/LayoutBuilderIsActiveCacheContext.php \Drupal\layout_builder\Cache\LayoutBuilderIsActiveCacheContext::__construct()
- 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\CacheCode
public function __construct(RouteMatchInterface $route_match) {
$this->routeMatch = $route_match;
}