Implements the magic method for clone().
File
- drupal/core/lib/Drupal/Core/Entity/EntityBCDecorator.php, line 210
- Contains \Drupal\Core\Entity\EntityBCDecorator.
Class
- EntityBCDecorator
- Provides backwards compatible (BC) access to entity fields.
Namespace
Drupal\Core\Entity
Code
function __clone() {
$this->decorated = clone $this->decorated;
}