You are here

public static function MyEntityCloneEventSubscriber::getSubscribedEvents in Entity Clone 8

File

./entity_clone.api.php, line 57
Entity Clone hooks and events.

Class

MyEntityCloneEventSubscriber
Event subscribers for Entity Clone.

Code

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