Same name in other branches
- 8.x-1.x src/EntityClone/EntityCloneInterface.php \Drupal\entity_clone\EntityClone\EntityCloneInterface
Defines a common interface for all entity clone objects.
Hierarchy
- interface \Drupal\entity_clone\EntityClone\EntityCloneInterface
Expanded class hierarchy of EntityCloneInterface
All classes that implement EntityCloneInterface
2 files declare their use of EntityCloneInterface
- ConfigEntityCloneBase.php in src/
EntityClone/ Config/ ConfigEntityCloneBase.php - ContentEntityCloneBase.php in src/
EntityClone/ Content/ ContentEntityCloneBase.php
File
-
src/
EntityClone/ EntityCloneInterface.php, line 10
Namespace
Drupal\entity_clone\EntityCloneView source
interface EntityCloneInterface {
/**
* Clone an entity.
*
* @param \Drupal\Core\Entity\EntityInterface $entity
* The entity.
* @param \Drupal\Core\Entity\EntityInterface $cloned_entity
* The cloned entity.
* @param array $properties
* All new properties to replace old.
*
* @return \Drupal\Core\Entity\EntityInterface
* The new saved entity.
*/
public function cloneEntity(EntityInterface $entity, EntityInterface $cloned_entity, array $properties = []);
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
EntityCloneInterface::cloneEntity | public | function | Clone an entity. | 2 |