merge-requests/4066/merge
parent
b9b388eeb7
commit
e9ae88f8b8
|
@ -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(),
|
||||
]);
|
||||
|
|
|
@ -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']);
|
||||
|
|
Loading…
Reference in New Issue