You are here

public function PaymentReferenceConfigurationForm::__construct in Payment 8.2

Constructs a \Drupal\system\ConfigFormBase object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory:

\Drupal\Core\StringTranslation\TranslationInterface $string_translation:

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

\Drupal\plugin\PluginType\PluginTypeInterface $plugin_selector_type:

Overrides ConfigFormBase::__construct

File

modules/payment_reference/src/Plugin/Payment/Type/PaymentReferenceConfigurationForm.php, line 46

Class

PaymentReferenceConfigurationForm
Provides the configuration form for the payment_reference payment type plugin.

Namespace

Drupal\payment_reference\Plugin\Payment\Type

Code

public function __construct(ConfigFactoryInterface $config_factory, TranslationInterface $string_translation, PaymentMethodManagerInterface $payment_method_manager, PluginTypeInterface $plugin_selector_type) {
  parent::__construct($config_factory);
  $this->paymentMethodManager = $payment_method_manager;
  $this->pluginSelectorType = $plugin_selector_type;
  $this->stringTranslation = $string_translation;
}