You are here

public function ListPaymentMethods::__construct in Payment 8.2

Constructs a new instance.

Parameters

\Drupal\Core\StringTranslation\TranslationInterface $string_translation:

\Drupal\payment\Plugin\Payment\Method\PaymentMethodManagerInterface $payment_method_manager:

File

src/Controller/ListPaymentMethods.php, line 28

Class

ListPaymentMethods
Handles the "list all payment methods" route.

Namespace

Drupal\payment\Controller

Code

public function __construct(TranslationInterface $string_translation, PaymentMethodManagerInterface $payment_method_manager) {
  $this->paymentMethodManager = $payment_method_manager;
  $this->stringTranslation = $string_translation;
}