Same name in other branches
- 8.x-1.x entity_clone.api.php \MyEntityCloneEventSubscriber::myPostClone()
An example event subscriber.
Dispatched after an entity is cloned and saved.
Voir aussi
\Drupal\entity_clone\Event\EntityCloneEvents::POST_CLONE
Fichier
-
./
entity_clone.api.php, line 57
Classe
- MyEntityCloneEventSubscriber
- Event subscribers for Entity Clone.
Code
public function myPostClone(EntityCloneEvent $event) : void {
$original = $event->getEntity();
$newEntity = $event->getClonedEntity();
}