public function getSections() { return $this->
getThirdPartySetting('layout_builder', 'sections',
[]);
} /**
* {@inheritdoc}
*/
protected function setSections(array
$sections) { // Third-party settings must be completely unset instead of stored as an
// empty array.
if (!
$sections) { $this->
unsetThirdPartySetting('layout_builder', 'sections'
);
} else { $this->
setThirdPartySetting('layout_builder', 'sections',
array_values($sections));
} return $this;
} /**
* {@inheritdoc}
*/
public function preSave(EntityStorageInterface
$storage) {