You are here

public function ConfigurePaymentType::__construct in Payment 8.2

Constructs a new instance.

Parameters

\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder.

\Drupal\payment\Plugin\Payment\Type\PaymentTypeManagerInterface $payment_type_manager: The payment type plugin manager.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation:

File

src/Controller/ConfigurePaymentType.php, line 33

Class

ConfigurePaymentType
Handles the "configure payment type" route.

Namespace

Drupal\payment\Controller

Code

public function __construct(FormBuilderInterface $form_builder, PaymentTypeManagerInterface $payment_type_manager, TranslationInterface $string_translation) {
  $this->formBuilder = $form_builder;
  $this->paymentTypeManager = $payment_type_manager;
  $this->stringTranslation = $string_translation;
}