You are here

interface FacebookCommerceInterface in Facebook Pixel 8

Defines the interface for facebook_pixel_commerce service.

Hierarchy

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_commerce
View 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

Namesort descending Modifiers Type Description Overrides
FacebookCommerceInterface::getOrderData public function Build the Facebook object for orders. 1
FacebookCommerceInterface::getOrderItemData public function Build the Facebook object for order items. 1