projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Pull merge.
[yaffs-website]
/
web
/
core
/
modules
/
layout_builder
/
src
/
Section.php
diff --git
a/web/core/modules/layout_builder/src/Section.php
b/web/core/modules/layout_builder/src/Section.php
index 30d903a30ab8a8f15eb116389a41c385d833313c..1ec0b8af10aea6d433106e59d99758836cdc8b4d 100644
(file)
--- a/
web/core/modules/layout_builder/src/Section.php
+++ b/
web/core/modules/layout_builder/src/Section.php
@@
-356,4
+356,13
@@
class Section {
);
}
+ /**
+ * Magic method: Implements a deep clone.
+ */
+ public function __clone() {
+ foreach ($this->components as $uuid => $component) {
+ $this->components[$uuid] = clone $component;
+ }
+ }
+
}