public static function ConfirmationMessageSubscriber::getSubscribedEvents in Commerce add to cart confirmation 1.x
File
- src/
EventSubscriber/ ConfirmationMessageSubscriber.php, line 48
Class
- ConfirmationMessageSubscriber
- Event Subscriber ConfirmationMessageSubscriber.
Namespace
Drupal\commerce_add_to_cart_confirmation\EventSubscriberCode
public static function getSubscribedEvents() {
$events[CartEvents::CART_ENTITY_ADD][] = [
'onAddToCart',
];
return $events;
}