You are here

public function PaymentInformation::__construct in Commerce Core 8.2

Constructs a new PaymentInformation 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\Core\Session\AccountInterface $current_user: The current user.

\Drupal\commerce\InlineFormManager $inline_form_manager: The inline form manager.

\Drupal\commerce_payment\PaymentOptionsBuilderInterface $payment_options_builder: The payment options builder.

Overrides CheckoutPaneBase::__construct

File

modules/payment/src/Plugin/Commerce/CheckoutPane/PaymentInformation.php, line 79

Class

PaymentInformation
Provides the payment information pane.

Namespace

Drupal\commerce_payment\Plugin\Commerce\CheckoutPane

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, CheckoutFlowInterface $checkout_flow, EntityTypeManagerInterface $entity_type_manager, AccountInterface $current_user, InlineFormManager $inline_form_manager, PaymentOptionsBuilderInterface $payment_options_builder) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $checkout_flow, $entity_type_manager);
  $this->currentUser = $current_user;
  $this->inlineFormManager = $inline_form_manager;
  $this->paymentOptionsBuilder = $payment_options_builder;
}