diff core/modules/layout_builder/layout_builder.services.yml @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
line wrap: on
line diff
--- a/core/modules/layout_builder/layout_builder.services.yml	Thu Feb 28 13:11:55 2019 +0000
+++ b/core/modules/layout_builder/layout_builder.services.yml	Thu May 09 15:34:47 2019 +0100
@@ -7,21 +7,21 @@
     tags:
       - { name: access_check, applies_to: _layout_builder_access }
   access_check.entity.layout:
+    # Deprecated in Drupal 8.7.0 and will be removed before Drupal 9.0.0. Use
+    # access_check.entity.layout_builder_access instead. See
+    # https://www.drupal.org/node/3039551.
     class: Drupal\layout_builder\Access\LayoutSectionAccessCheck
     tags:
       - { name: access_check, applies_to: _has_layout_section }
   plugin.manager.layout_builder.section_storage:
     class: Drupal\layout_builder\SectionStorage\SectionStorageManager
     parent: default_plugin_manager
+    arguments: ['@context.handler']
   layout_builder.routes:
     class: Drupal\layout_builder\Routing\LayoutBuilderRoutes
     arguments: ['@plugin.manager.layout_builder.section_storage']
     tags:
      - { name: event_subscriber }
-  layout_builder.route_enhancer:
-    class: Drupal\layout_builder\Routing\LayoutBuilderRouteEnhancer
-    tags:
-      - { name: route_enhancer }
   layout_builder.param_converter:
     class: Drupal\layout_builder\Routing\LayoutTempstoreParamConverter
     arguments: ['@layout_builder.tempstore_repository', '@plugin.manager.layout_builder.section_storage']
@@ -32,6 +32,11 @@
     arguments: ['@current_route_match']
     tags:
       - { name: cache.context}
+  cache_context.route.name.is_layout_builder_ui:
+    class: Drupal\layout_builder\Cache\LayoutBuilderUiCacheContext
+    arguments: ['@current_route_match']
+    tags:
+      - { name: cache.context }
   layout_builder.sample_entity_generator:
     class: Drupal\layout_builder\Entity\LayoutBuilderSampleEntityGenerator
     arguments: ['@tempstore.shared', '@entity_type.manager']