You are here

public static function EntityDuplicateSubscriber::getSubscribedEvents in Entity API 8

File

src/EventSubscriber/EntityDuplicateSubscriber.php, line 32

Class

EntityDuplicateSubscriber

Namespace

Drupal\entity\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events = [
    EntityEvents::ENTITY_DUPLICATE => [
      'onEntityDuplicate',
    ],
  ];
  return $events;
}