You are here

interface FacebookEventInterface in Facebook Pixel 8

Defines the interface for facebook_pixel service.

Hierarchy

Expanded class hierarchy of FacebookEventInterface

All classes that implement FacebookEventInterface

2 files declare their use of FacebookEventInterface
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

src/FacebookEventInterface.php, line 8

Namespace

Drupal\facebook_pixel
View source
interface FacebookEventInterface {

  /**
   * Register an event.
   *
   * @param string $event
   *   The event name.
   * @param mixed $data
   *   The event data.
   */
  public function addEvent($event, $data);

  /**
   * Get the facebook events.
   */
  public function getEvents();

}

Members

Namesort descending Modifiers Type Description Overrides
FacebookEventInterface::addEvent public function Register an event. 1
FacebookEventInterface::getEvents public function Get the facebook events. 1