public function Section::__clone in Drupal 8
Same name and namespace in other branches
- 9 core/modules/layout_builder/src/Section.php \Drupal\layout_builder\Section::__clone()
- 10 core/modules/layout_builder/src/Section.php \Drupal\layout_builder\Section::__clone()
Magic method: Implements a deep clone.
File
- core/
modules/ layout_builder/ src/ Section.php, line 377
Class
- Section
- Provides a domain object for layout sections.
Namespace
Drupal\layout_builderCode
public function __clone() {
foreach ($this->components as $uuid => $component) {
$this->components[$uuid] = clone $component;
}
}