You are here

function PaymentMethodConfigurationForm::__construct in Payment 8.2

Parameters

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translator.

\Drupal\Core\Session\AccountInterface $current_user: The current user.

\Drupal\Core\Entity\EntityStorageInterface $payment_method_configuration_storage: The payment method configuration storage.

\Drupal\payment\Plugin\Payment\MethodConfiguration\PaymentMethodConfigurationManagerInterface $payment_method_configuration_manager: The payment method configuration manager.

File

src/Entity/PaymentMethodConfiguration/PaymentMethodConfigurationForm.php, line 51

Class

PaymentMethodConfigurationForm
Provides the payment method configuration form.

Namespace

Drupal\payment\Entity\PaymentMethodConfiguration

Code

function __construct(TranslationInterface $string_translation, AccountInterface $current_user, EntityStorageInterface $payment_method_configuration_storage, PaymentMethodConfigurationManagerInterface $payment_method_configuration_manager) {
  $this->currentUser = $current_user;
  $this->paymentMethodConfigurationManager = $payment_method_configuration_manager;
  $this->paymentMethodConfigurationStorage = $payment_method_configuration_storage;
  $this->stringTranslation = $string_translation;
}