public function Map::__clone in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php \Drupal\Core\TypedData\Plugin\DataType\Map::__clone()
Magic method: Implements a deep clone.
File
- core/
lib/ Drupal/ Core/ TypedData/ Plugin/ DataType/ Map.php, line 207
Class
- Map
- The "map" data type.
Namespace
Drupal\Core\TypedData\Plugin\DataTypeCode
public function __clone() {
foreach ($this->properties as $name => $property) {
$this->properties[$name] = clone $property;
$this->properties[$name]
->setContext($name, $this);
}
}