comparison core/modules/layout_builder/src/Section.php @ 4:a9cd425dd02b

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:11:55 +0000
parents c75dbcec494b
children 12f9dff5fda9
comparison
equal deleted inserted replaced
3:307d7a7fd348 4:a9cd425dd02b
354 $section['layout_settings'], 354 $section['layout_settings'],
355 array_map([SectionComponent::class, 'fromArray'], $section['components']) 355 array_map([SectionComponent::class, 'fromArray'], $section['components'])
356 ); 356 );
357 } 357 }
358 358
359 /**
360 * Magic method: Implements a deep clone.
361 */
362 public function __clone() {
363 foreach ($this->components as $uuid => $component) {
364 $this->components[$uuid] = clone $component;
365 }
366 }
367
359 } 368 }