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();
Please login to continue.