Same name in other branches
  1. 2.x entity_clone.api.php \MyEntityCloneEventSubscriber::getSubscribedEvents()

Fichier

./entity_clone.api.php, line 65

Classe

MyEntityCloneEventSubscriber
Event subscribers for Entity Clone.

Code

public static function getSubscribedEvents() : array {
    $events[EntityCloneEvents::PRE_CLONE][] = [
        'myPreClone',
    ];
    $events[EntityCloneEvents::POST_CLONE][] = [
        'myPostClone',
    ];
    return $events;
}