You are here

public function CheckoutPaneBase::__construct in Commerce Core 8.2

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.

Overrides PluginBase::__construct

6 calls to CheckoutPaneBase::__construct()
BillingInformation::__construct in modules/checkout/src/Plugin/Commerce/CheckoutPane/BillingInformation.php
Constructs a new BillingInformation object.
CompletionRegister::__construct in modules/checkout/src/Plugin/Commerce/CheckoutPane/CompletionRegister.php
Constructs a new CompletionRegister object.
CouponRedemption::__construct in modules/promotion/src/Plugin/Commerce/CheckoutPane/CouponRedemption.php
Constructs a new CouponRedemption object.
Login::__construct in modules/checkout/src/Plugin/Commerce/CheckoutPane/Login.php
Constructs a new Login object.
PaymentInformation::__construct in modules/payment/src/Plugin/Commerce/CheckoutPane/PaymentInformation.php
Constructs a new PaymentInformation object.

... See full list

6 methods override CheckoutPaneBase::__construct()
BillingInformation::__construct in modules/checkout/src/Plugin/Commerce/CheckoutPane/BillingInformation.php
Constructs a new BillingInformation object.
CompletionRegister::__construct in modules/checkout/src/Plugin/Commerce/CheckoutPane/CompletionRegister.php
Constructs a new CompletionRegister object.
CouponRedemption::__construct in modules/promotion/src/Plugin/Commerce/CheckoutPane/CouponRedemption.php
Constructs a new CouponRedemption object.
Login::__construct in modules/checkout/src/Plugin/Commerce/CheckoutPane/Login.php
Constructs a new Login object.
PaymentInformation::__construct in modules/payment/src/Plugin/Commerce/CheckoutPane/PaymentInformation.php
Constructs a new PaymentInformation object.

... See full list

File

modules/checkout/src/Plugin/Commerce/CheckoutPane/CheckoutPaneBase.php, line 54

Class

CheckoutPaneBase
Provides the base checkout pane class.

Namespace

Drupal\commerce_checkout\Plugin\Commerce\CheckoutPane

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, CheckoutFlowInterface $checkout_flow, EntityTypeManagerInterface $entity_type_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->checkoutFlow = $checkout_flow;
  $this->order = $checkout_flow
    ->getOrder();
  $this
    ->setConfiguration($configuration);
  $this->entityTypeManager = $entity_type_manager;
}