You are here

public function PaymentMethodAddForm::__construct in Commerce PayPal 8

Constructs a new PaymentMethodAddForm object.

Parameters

\Drupal\commerce_store\CurrentStoreInterface $current_store: The current store.

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

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

\Psr\Log\LoggerInterface $logger: The logger.

\Drupal\commerce_paypal\CustomCardFieldsBuilderInterface $card_fields_builder: The custom card fields builder.

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

Overrides PaymentMethodFormBase::__construct

File

src/PluginForm/Checkout/PaymentMethodAddForm.php, line 49

Class

PaymentMethodAddForm

Namespace

Drupal\commerce_paypal\PluginForm\Checkout

Code

public function __construct(CurrentStoreInterface $current_store, EntityTypeManagerInterface $entity_type_manager, InlineFormManager $inline_form_manager, LoggerInterface $logger, CustomCardFieldsBuilderInterface $card_fields_builder, RouteMatchInterface $route_match) {
  parent::__construct($current_store, $entity_type_manager, $inline_form_manager, $logger);
  $this->cardFieldsBuilder = $card_fields_builder;
  $this->routeMatch = $route_match;
}