function LayoutBuilderIsActiveCacheContext::__construct
Same name in other branches
- 9 core/modules/layout_builder/src/Cache/LayoutBuilderIsActiveCacheContext.php \Drupal\layout_builder\Cache\LayoutBuilderIsActiveCacheContext::__construct()
- 8.9.x core/modules/layout_builder/src/Cache/LayoutBuilderIsActiveCacheContext.php \Drupal\layout_builder\Cache\LayoutBuilderIsActiveCacheContext::__construct()
- 11.x 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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.