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

1
public function createDuplicate();
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.