You are here

public function EntityDuplicateEvent::getEntity in Entity API 8

Gets the entity.

Return value

\Drupal\Core\Entity\EntityInterface The entity.

File

src/Event/EntityDuplicateEvent.php, line 48

Class

EntityDuplicateEvent
Defines the entity duplicate event.

Namespace

Drupal\entity\Event

Code

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