Same name in other branches
  1. 2.x src/Event/EntityCloneEvent.php \Drupal\entity_clone\Event\EntityCloneEvent::getEntity()

Gets entity being cloned.

Return value

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

Fichier

src/Event/EntityCloneEvent.php, line 56

Classe

EntityCloneEvent
Represents entity selection as event.

Namespace

Drupal\entity_clone\Event

Code

public function getEntity() {
    return $this->entity;
}