You are here

public function PaymentAddForm::__construct in Commerce Core 8.2

Constructs a new PaymentAddForm object.

Parameters

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

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

\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match.

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

File

modules/payment/src/Form/PaymentAddForm.php, line 72

Class

PaymentAddForm
Provides the payment add form.

Namespace

Drupal\commerce_payment\Form

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, InlineFormManager $inline_form_manager, RouteMatchInterface $route_match, PaymentOptionsBuilderInterface $payment_options_builder) {
  $this->entityTypeManager = $entity_type_manager;
  $this->inlineFormManager = $inline_form_manager;
  $this->paymentOptionsBuilder = $payment_options_builder;
  $this->order = $route_match
    ->getParameter('commerce_order');
}