You are here

public function EntityDuplicateEvent::getSourceEntity in Entity API 8

Gets the source entity.

Return value

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

File

src/Event/EntityDuplicateEvent.php, line 58

Class

EntityDuplicateEvent
Defines the entity duplicate event.

Namespace

Drupal\entity\Event

Code

public function getSourceEntity() {
  return $this->sourceEntity;
}