Loading core/modules/layout_builder/src/Cache/LayoutBuilderUiCacheContext.php +5 −1 Original line number Diff line number Diff line Loading @@ -25,7 +25,11 @@ public static function getLabel() { * {@inheritdoc} */ public function getContext() { return 'is_layout_builder_ui.' . (int) !str_starts_with($this->routeMatch->getRouteName(), 'layout_builder.'); $route_name = $this->routeMatch->getRouteName(); if ($route_name && str_starts_with($route_name, 'layout_builder.')) { return 'is_layout_builder_ui.0'; } return 'is_layout_builder_ui.1'; } } Loading
core/modules/layout_builder/src/Cache/LayoutBuilderUiCacheContext.php +5 −1 Original line number Diff line number Diff line Loading @@ -25,7 +25,11 @@ public static function getLabel() { * {@inheritdoc} */ public function getContext() { return 'is_layout_builder_ui.' . (int) !str_starts_with($this->routeMatch->getRouteName(), 'layout_builder.'); $route_name = $this->routeMatch->getRouteName(); if ($route_name && str_starts_with($route_name, 'layout_builder.')) { return 'is_layout_builder_ui.0'; } return 'is_layout_builder_ui.1'; } }