interface FacebookCommerceInterface in Facebook Pixel 8
Defines the interface for facebook_pixel_commerce service.
Hierarchy
- interface \Drupal\facebook_pixel_commerce\FacebookCommerceInterface
Expanded class hierarchy of FacebookCommerceInterface
All classes that implement FacebookCommerceInterface
2 files declare their use of FacebookCommerceInterface
- CartSubscriber.php in modules/
facebook_pixel_commerce/ src/ EventSubscriber/ CartSubscriber.php - FacebookCheckout.php in modules/
facebook_pixel_commerce/ src/ Plugin/ Commerce/ CheckoutPane/ FacebookCheckout.php
File
- modules/
facebook_pixel_commerce/ src/ FacebookCommerceInterface.php, line 11
Namespace
Drupal\facebook_pixel_commerceView source
interface FacebookCommerceInterface {
/**
* Build the Facebook object for orders.
*
* @param \Drupal\commerce_order\Entity\OrderInterface $order
* The order object.
*
* @return array
* The data array for an order.
*/
public function getOrderData(OrderInterface $order);
/**
* Build the Facebook object for order items.
*
* @param \Drupal\commerce_order\Entity\OrderItemInterface $order_item
* The order item object.
*
* @return array
* The data array for an order item.
*/
public function getOrderItemData(OrderItemInterface $order_item);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FacebookCommerceInterface:: |
public | function | Build the Facebook object for orders. | 1 |
FacebookCommerceInterface:: |
public | function | Build the Facebook object for order items. | 1 |