You are here

public static function AjaxAddToCartPopupSubscriber::getSubscribedEvents in Commerce Ajax Add to Cart 8

File

modules/dc_ajax_add_cart_popup/src/EventSubscriber/AjaxAddToCartPopupSubscriber.php, line 91

Class

AjaxAddToCartPopupSubscriber
Event subscriber to display a popup when items are added to cart via AJAX.

Namespace

Drupal\dc_ajax_add_cart_popup\EventSubscriber

Code

public static function getSubscribedEvents() {
  return [
    KernelEvents::RESPONSE => 'onResponse',
    CartEvents::CART_ENTITY_ADD => 'onAddToCart',
  ];
}