else { $contexts['entity'
] = EntityContext::
fromEntity($entity);
if ($entity instanceof FieldableEntityInterface
) { $display = EntityViewDisplay::
collectRenderDisplay($entity,
$view_mode);
if ($display instanceof LayoutEntityDisplayInterface
) { $contexts['display'
] = EntityContext::
fromEntity($display);
} $contexts['view_mode'
] =
new Context(new ContextDefinition('string'
),
$view_mode);
} } return $this->
sectionStorageManager()->
findByContext($contexts,
new CacheableMetadata());
} /**
* Determines if the original entity used the default section storage.
*
* This method can be used during the entity save process to determine whether
* $entity->original is set and used the default section storage plugin as
* determined by ::getSectionStorageForEntity().
*
* @param \Drupal\Core\Entity\EntityInterface $entity
* The entity.
*
* @return bool
* TRUE if the original entity used the default storage.
*/