public function EntityInterface::createDuplicate

Creates a duplicate of the entity.

Return value

Drupal\Core\Entity\EntityInterface A clone of the current entity with all identifiers unset, so saving it inserts a new entity into the storage system.

2 methods override EntityInterface::createDuplicate()

File

drupal/core/lib/Drupal/Core/Entity/EntityInterface.php, line 155
Definition of Drupal\Core\Entity\EntityInterface.

Class

EntityInterface
Defines a common interface for all entity objects.

Namespace

Drupal\Core\Entity

Code

public function createDuplicate();