public function CartSubscriber::__construct in Facebook Pixel 8
Constructs a new OrderEventSubscriber object.
Parameters
\Drupal\commerce_cart\CartProviderInterface $cart_provider: The cart provider.
\Drupal\facebook_pixel\FacebookEventInterface $facebook_event: The Facebook Event service.
\Drupal\facebook_pixel_commerce\FacebookCommerceInterface $facebook_commerce: The Facebook Commerce service.
File
- modules/
facebook_pixel_commerce/ src/ EventSubscriber/ CartSubscriber.php, line 49
Class
- CartSubscriber
- Cart subscriber.
Namespace
Drupal\facebook_pixel_commerce\EventSubscriberCode
public function __construct(CartProviderInterface $cart_provider, FacebookEventInterface $facebook_event, FacebookCommerceInterface $facebook_commerce) {
$this->cartProvider = $cart_provider;
$this->facebookEvent = $facebook_event;
$this->facebookCommerce = $facebook_commerce;
}