You are here

public static function CartSubscriber::getSubscribedEvents in Facebook Pixel 8

File

modules/facebook_pixel_commerce/src/EventSubscriber/CartSubscriber.php, line 58

Class

CartSubscriber
Cart subscriber.

Namespace

Drupal\facebook_pixel_commerce\EventSubscriber

Code

public static function getSubscribedEvents() {
  return [
    CartEvents::CART_ENTITY_ADD => 'addToCart',
    'commerce_order.place.pre_transition' => 'finalizeCart',
  ];
}