You are here

public static function ProductEventSubscriber::getSubscribedEvents in Mailchimp E-Commerce 8

File

modules/mailchimp_ecommerce_commerce/src/EventSubscriber/ProductEventSubscriber.php, line 84

Class

ProductEventSubscriber
Event Subscriber for Commerce Products.

Namespace

Drupal\mailchimp_ecommerce_commerce\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events[ProductEvents::PRODUCT_INSERT][] = [
    'productInsert',
  ];
  $events[ProductEvents::PRODUCT_UPDATE][] = [
    'productUpdate',
  ];
  $events[ProductEvents::PRODUCT_DELETE][] = [
    'productDelete',
  ];
  return $events;
}