FacebookCommerceInterface.php in Facebook Pixel 8
Namespace
Drupal\facebook_pixel_commerceFile
modules/facebook_pixel_commerce/src/FacebookCommerceInterface.phpView source
<?php
namespace Drupal\facebook_pixel_commerce;
use Drupal\commerce_order\Entity\OrderInterface;
use Drupal\commerce_order\Entity\OrderItemInterface;
/**
* Defines the interface for facebook_pixel_commerce service.
*/
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);
}
Interfaces
Name | Description |
---|---|
FacebookCommerceInterface | Defines the interface for facebook_pixel_commerce service. |