EntityCloneInterface.php in Entity Clone 8
Namespace
Drupal\entity_clone\EntityCloneFile
src/EntityClone/EntityCloneInterface.phpView source
<?php
namespace Drupal\entity_clone\EntityClone;
use Drupal\Core\Entity\EntityInterface;
/**
* Defines a common interface for all entity clone objects.
*/
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 = []);
}
Interfaces
Name | Description |
---|---|
EntityCloneInterface | Defines a common interface for all entity clone objects. |