Issue #3361627 by Spokje, borisson_: Remove outdated @todo's in layout_builder pointing to #3018782

merge-requests/4066/merge
Dave Long 2023-06-21 22:50:40 +01:00
parent b9b388eeb7
commit e9ae88f8b8
No known key found for this signature in database
GPG Key ID: ED52AE211E142771
2 changed files with 0 additions and 2 deletions

View File

@ -303,7 +303,6 @@ class LayoutBuilderEntityViewDisplay extends BaseEntityViewDisplay implements La
*/
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(),
]);

View File

@ -311,7 +311,6 @@ class OverridesSectionStorage extends SectionStorageBase implements ContainerFac
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']);