EntityInterface::createDuplicate

public EntityInterface::createDuplicate()

Creates a duplicate of the entity.

Return value

static A clone of $this with all identifiers unset, so saving it inserts a new entity into the storage system.

File

core/lib/Drupal/Core/Entity/EntityInterface.php, line 397

Class

EntityInterface
Defines a common interface for all entity objects.

Namespace

Drupal\Core\Entity

Code

public function createDuplicate();
doc_Drupal
2016-10-29 09:06:39
Comments
Leave a Comment

Please login to continue.