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

Gets entity being cloned.

Return value

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

File

src/Event/EntityCloneEvent.php, line 56

Class

EntityCloneEvent
Represents entity selection as event.

Namespace

Drupal\entity_clone\Event

Code

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