1 entity.class.inc | public EntityInterface::createDuplicate() |
Creates a duplicate of the entity.
Return value
EntityInterface: A clone of the current entity with all identifiers unset, so saving it inserts a new entity into the storage system.
File
- core/
modules/ entity/ entity.class.inc, line 163 - Provides an interface and a base class for entities.
Class
- EntityInterface
- Defines a common interface for all entity objects.
Code
public function createDuplicate();