Same name in other branches
- 8.x-1.x src/Event/EntityCloneEvent.php \Drupal\entity_clone\Event\EntityCloneEvent::__construct()
Constructs an EntityCloneEvent object.
Paramètres
\Drupal\Core\Entity\EntityInterface $entity: The original entity that was cloned.
\Drupal\Core\Entity\EntityInterface $cloned_entity: The clone of the original entity.
array $properties: The entity's properties.
Fichier
-
src/
Event/ EntityCloneEvent.php, line 44
Classe
- EntityCloneEvent
- Represents entity selection as event.
Namespace
Drupal\entity_clone\EventCode
public function __construct(EntityInterface $entity, EntityInterface $cloned_entity, array $properties = []) {
$this->entity = $entity;
$this->clonedEntity = $cloned_entity;
$this->properties = $properties;
}