X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Flayout_builder%2Fsrc%2FField%2FLayoutSectionItemList.php;fp=web%2Fcore%2Fmodules%2Flayout_builder%2Fsrc%2FField%2FLayoutSectionItemList.php;h=c2603192f21689a11b76d93313e08ad45e22c0b4;hp=a2ceca1373819bc00c91a9d323385c8e5cab1b45;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/layout_builder/src/Field/LayoutSectionItemList.php b/web/core/modules/layout_builder/src/Field/LayoutSectionItemList.php index a2ceca137..c2603192f 100644 --- a/web/core/modules/layout_builder/src/Field/LayoutSectionItemList.php +++ b/web/core/modules/layout_builder/src/Field/LayoutSectionItemList.php @@ -47,9 +47,12 @@ class LayoutSectionItemList extends FieldItemList implements SectionListInterfac /** * {@inheritdoc} */ - public function __wakeup() { + public function getEntity() { + $entity = parent::getEntity(); + // Ensure the entity is updated with the latest value. - $this->getEntity()->set($this->getName(), $this->getValue()); + $entity->set($this->getName(), $this->getValue()); + return $entity; } }