Mercurial > hg > isophonics-drupal-site
diff core/modules/layout_builder/src/Section.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | c2387f117808 |
children | af1871eacc83 |
line wrap: on
line diff
--- a/core/modules/layout_builder/src/Section.php Tue Jul 10 15:07:59 2018 +0100 +++ b/core/modules/layout_builder/src/Section.php Thu Feb 28 13:21:36 2019 +0000 @@ -356,4 +356,13 @@ ); } + /** + * Magic method: Implements a deep clone. + */ + public function __clone() { + foreach ($this->components as $uuid => $component) { + $this->components[$uuid] = clone $component; + } + } + }