Same name in other branches
- 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.
File
-
src/
Event/ EntityCloneEvent.php, line 56
Class
- EntityCloneEvent
- Represents entity selection as event.
Namespace
Drupal\entity_clone\EventCode
public function getEntity() {
return $this->entity;
}