Same name in other branches
  1. 8.x-1.x src/Event/EntityCloneEvent.php \Drupal\entity_clone\Event\EntityCloneEvent::getClonedEntity()

Gets new cloned entity.

Return value

\Drupal\Core\Entity\EntityInterface The cloned entity.

File

src/Event/EntityCloneEvent.php, line 66

Class

EntityCloneEvent
Represents entity selection as event.

Namespace

Drupal\entity_clone\Event

Code

public function getClonedEntity() {
    return $this->clonedEntity;
}