--- 3313342-6.patch 2022-11-16 11:53:27.000000000 +0530 +++ 3313342-9.patch 2022-12-01 16:43:22.000000000 +0530 @@ -1,5 +1,5 @@ diff --git a/core/modules/layout_builder/layout_builder.module b/core/modules/layout_builder/layout_builder.module -index 1646139..b076841 100644 +index 1646139aa7..b94c63131b 100644 --- a/core/modules/layout_builder/layout_builder.module +++ b/core/modules/layout_builder/layout_builder.module @@ -158,7 +158,7 @@ function layout_builder_entity_view_alter(array &$build, EntityInterface $entity @@ -7,12 +7,12 @@ // route is in the Layout Builder UI, then remove all contextual link // placeholders. - if ($display instanceof LayoutBuilderEntityViewDisplay && strpos($route_name, 'layout_builder.') === 0) { -+ if ($display instanceof LayoutBuilderEntityViewDisplay && strpos((string) $route_name, 'layout_builder.') === FALSE) { ++ if ($display instanceof LayoutBuilderEntityViewDisplay && strpos(strval($route_name), 'layout_builder.') === FALSE) { unset($build['#contextual_links']); } } diff --git a/core/modules/layout_builder/src/Cache/LayoutBuilderUiCacheContext.php b/core/modules/layout_builder/src/Cache/LayoutBuilderUiCacheContext.php -index 4626d1c..e700662 100644 +index 4626d1cd86..8ffc83af81 100644 --- a/core/modules/layout_builder/src/Cache/LayoutBuilderUiCacheContext.php +++ b/core/modules/layout_builder/src/Cache/LayoutBuilderUiCacheContext.php @@ -25,7 +25,7 @@ public static function getLabel() { @@ -20,7 +20,7 @@ */ public function getContext() { - return 'is_layout_builder_ui.' . (int) (strpos($this->routeMatch->getRouteName(), 'layout_builder.') !== 0); -+ return 'is_layout_builder_ui.' . (int) (strpos((string) $this->routeMatch->getRouteName(), 'layout_builder.') !== FALSE); ++ return 'is_layout_builder_ui.' . (int) (strpos(strval($this->routeMatch->getRouteName()), 'layout_builder.') !== FALSE); } }