toArray(); }, $record['third_party_settings']['layout_builder']['sections']); } return $record; } /** * {@inheritdoc} */ protected function mapFromStorageRecords(array $records) { foreach ($records as $id => &$record) { if (!empty($record['third_party_settings']['layout_builder']['sections'])) { $sections = &$record['third_party_settings']['layout_builder']['sections']; $sections = array_map([Section::class, 'fromArray'], $sections); } } return parent::mapFromStorageRecords($records); } }