By tedbow on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.7.x
Introduced in version:
8.7.0-alpha2
Issue links:
Description:
The method \Drupal\layout_builder\LayoutEntityHelperTrait::isEntityUsingFieldOverride() is deprecated because it exposed internals of the Layout Builder overrides section storage that code should not rely on.
To determine if a loaded entity would use a Layout Builder override for rendering you can use \Drupal\layout_builder\LayoutEntityHelperTrait::getSectionStorageForEntity
For a class using this trait the logic would be:
$uses_override = $this->getSectionStorageForEntity($entity) instanceof OverridesSectionStorageInterface;
Additionally, InlineBlockEntityOperations has been updated to use the section storage manager service, but this is unlikely to affect any extending code.
Impacts:
Module developers