You are here

interface EntityCloneInterface in Entity Clone 8

Defines a common interface for all entity clone objects.

Hierarchy

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\EntityClone
View 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