You are here

public function FacebookCheckout::__construct in Facebook Pixel 8

Constructs a new CheckoutPaneBase object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\commerce_checkout\Plugin\Commerce\CheckoutFlow\CheckoutFlowInterface $checkout_flow: The parent checkout flow.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\facebook_pixel\FacebookEventInterface $facebook_event: The facebook pixel event.

\Drupal\facebook_pixel_commerce\FacebookCommerceInterface $facebook_comment: The facebook pixel commerce.

Overrides CheckoutPaneBase::__construct

File

modules/facebook_pixel_commerce/src/Plugin/Commerce/CheckoutPane/FacebookCheckout.php, line 60

Class

FacebookCheckout
Provides the completion message pane.

Namespace

Drupal\facebook_pixel_commerce\Plugin\Commerce\CheckoutPane

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, CheckoutFlowInterface $checkout_flow, EntityTypeManagerInterface $entity_type_manager, FacebookEventInterface $facebook_event, FacebookCommerceInterface $facebook_comment) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $checkout_flow, $entity_type_manager);
  $this->facebookEvent = $facebook_event;
  $this->facebookComment = $facebook_comment;
}