From e9ae88f8b807bff9b78f95807b8dda857382da31 Mon Sep 17 00:00:00 2001 From: Dave Long <dave@longwaveconsulting.com> Date: Wed, 21 Jun 2023 22:50:40 +0100 Subject: [PATCH] Issue #3361627 by Spokje, borisson_: Remove outdated @todo's in layout_builder pointing to #3018782 --- .../layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php | 1 - .../src/Plugin/SectionStorage/OverridesSectionStorage.php | 1 - 2 files changed, 2 deletions(-) diff --git a/core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php b/core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php index 457705a791a7..204718720627 100644 --- a/core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php +++ b/core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php @@ -303,7 +303,6 @@ public function buildMultiple(array $entities) { */ protected function buildSections(FieldableEntityInterface $entity) { $contexts = $this->getContextsForEntity($entity); - // @todo Remove in https://www.drupal.org/project/drupal/issues/3018782. $label = new TranslatableMarkup('@entity being viewed', [ '@entity' => $entity->getEntityType()->getSingularLabel(), ]); diff --git a/core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php b/core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php index 7e17c88e7b3b..e762ac839711 100644 --- a/core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php +++ b/core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php @@ -311,7 +311,6 @@ public function getLayoutBuilderUrl($rel = 'view') { public function getContextsDuringPreview() { $contexts = parent::getContextsDuringPreview(); - // @todo Remove this in https://www.drupal.org/node/3018782. if (isset($contexts['entity'])) { $contexts['layout_builder.entity'] = $contexts['entity']; unset($contexts['entity']); -- GitLab