You are here

public function EntityCloneEvent::getEntity in Entity Clone 8

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;
}