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\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\payment\EventDispatcherInterface $event_dispatcher: The event dispatcher.

\Drupal\Core\Utility\Token $token: The token API.

\Drupal\payment\Plugin\Payment\Status\PaymentStatusManagerInterface: The payment status manager.

Overrides PaymentMethodBase::__construct

File

src/Plugin/Payment/Method/MolliePayment.php, line 74

Class

MolliePayment
A payment method using Mollie.

Namespace

Drupal\mollie_payment\Plugin\Payment\Method

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, ModuleHandlerInterface $module_handler, EventDispatcherInterface $event_dispatcher, Token $token, PaymentStatusManagerInterface $payment_status_manager) {
  $configuration += $this
    ->defaultConfiguration();
  parent::__construct($configuration, $plugin_id, $plugin_definition, $module_handler, $event_dispatcher, $token, $payment_status_manager);
}