You are here

public function MolliePayment::__construct in Mollie Payment 8.2

Same name in this branch
  1. 8.2 src/Plugin/Payment/MethodConfiguration/MolliePayment.php \Drupal\mollie_payment\Plugin\Payment\MethodConfiguration\MolliePayment::__construct()
  2. 8.2 src/Plugin/Payment/Method/MolliePayment.php \Drupal\mollie_payment\Plugin\Payment\Method\MolliePayment::__construct()

Constructs a new instance.

Parameters

mixed[] $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed[] $plugin_definition: The plugin implementation definition.

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

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\plugin\Plugin\Plugin\PluginSelector\PluginSelectorManagerInterface: The plugin selector manager.

\Drupal\plugin\PluginType\PluginType $payment_status_type: The payment status plugin type.

Overrides PaymentMethodConfigurationBase::__construct

File

src/Plugin/Payment/MethodConfiguration/MolliePayment.php, line 64

Class

MolliePayment
Provides the configuration for the mollie_payment payment method plugin.

Namespace

Drupal\mollie_payment\Plugin\Payment\MethodConfiguration

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, TranslationInterface $string_translation, ModuleHandlerInterface $module_handler, PluginSelectorManagerInterface $plugin_selector_manager, PluginType $payment_status_type) {
  $configuration += $this
    ->defaultConfiguration();
  parent::__construct($configuration, $plugin_id, $plugin_definition, $string_translation, $module_handler);
  $this->paymentStatusType = $payment_status_type;
  $this->pluginSelectorManager = $plugin_selector_manager;
}