You are here

public function PaymentTypeBase::__construct in Payment 8.2

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\payment\EventDispatcherInterface $event_dispatcher: The event dispatcher.

Overrides PluginBase::__construct

3 calls to PaymentTypeBase::__construct()
PaymentForm::__construct in modules/payment_form/src/Plugin/Payment/Type/PaymentForm.php
Constructs a new instance.
PaymentReference::__construct in modules/payment_reference/src/Plugin/Payment/Type/PaymentReference.php
Constructs a new instance.
Unavailable::__construct in src/Plugin/Payment/Type/Unavailable.php
Constructs a new instance.
3 methods override PaymentTypeBase::__construct()
PaymentForm::__construct in modules/payment_form/src/Plugin/Payment/Type/PaymentForm.php
Constructs a new instance.
PaymentReference::__construct in modules/payment_reference/src/Plugin/Payment/Type/PaymentReference.php
Constructs a new instance.
Unavailable::__construct in src/Plugin/Payment/Type/Unavailable.php
Constructs a new instance.

File

src/Plugin/Payment/Type/PaymentTypeBase.php, line 39

Class

PaymentTypeBase
Defines base payment type.

Namespace

Drupal\payment\Plugin\Payment\Type

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, EventDispatcherInterface $event_dispatcher) {
  $configuration += $this
    ->defaultConfiguration();
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->eventDispatcher = $event_dispatcher;
}