function Map::__clone
Same name in other branches
- 9 core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php \Drupal\Core\TypedData\Plugin\DataType\Map::__clone()
- 8.9.x core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php \Drupal\Core\TypedData\Plugin\DataType\Map::__clone()
- 11.x 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 214
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);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.