diff --git a/core/modules/layout_builder/src/InlineBlockEntityOperations.php b/core/modules/layout_builder/src/InlineBlockEntityOperations.php index cb26ebb18c..9760243bf3 100644 --- a/core/modules/layout_builder/src/InlineBlockEntityOperations.php +++ b/core/modules/layout_builder/src/InlineBlockEntityOperations.php @@ -166,8 +166,9 @@ public function handlePreSave(EntityInterface $entity) { // Since multiple parent entity revisions may reference common block // revisions, when a block is modified, it must always result in the // creation of a new block revision. + $new_revision = $entity instanceof RevisionableInterface; foreach ($this->getInlineBlockComponents($sections) as $component) { - $this->saveInlineBlockComponent($entity, $component, $entity instanceof RevisionableInterface, $duplicate_blocks); + $this->saveInlineBlockComponent($entity, $component, $new_revision, $duplicate_blocks); } } $this->removeUnusedForEntityOnSave($entity);