You are here

public function PaymentAwarePluginManagerDecorator::__construct in Payment 8.2

Creates a new instance.

Parameters

\Drupal\payment\Entity\PaymentInterface $payment: The payment to inject into payment-aware plugin instances.

\Drupal\Component\Plugin\PluginManagerInterface $plugin_manager: The decorated plugin manager.

\Drupal\Component\Plugin\Discovery\DiscoveryInterface|null $discovery: A plugin discovery to use instead of the decorated plugin manager, or NULL to use the decorated plugin manager.

Overrides PluginManagerDecorator::__construct

1 call to PaymentAwarePluginManagerDecorator::__construct()
PaymentExecutionPaymentMethodManager::__construct in src/Plugin/Payment/Method/PaymentExecutionPaymentMethodManager.php
Creates a new instance.
1 method overrides PaymentAwarePluginManagerDecorator::__construct()
PaymentExecutionPaymentMethodManager::__construct in src/Plugin/Payment/Method/PaymentExecutionPaymentMethodManager.php
Creates a new instance.

File

src/Plugin/Payment/PaymentAwarePluginManagerDecorator.php, line 38

Class

PaymentAwarePluginManagerDecorator
Provides a payment-aware plugin manager decorator.

Namespace

Drupal\payment\Plugin\Payment

Code

public function __construct(PaymentInterface $payment, PluginManagerInterface $plugin_manager, DiscoveryInterface $discovery = NULL) {
  parent::__construct($plugin_manager, $discovery);
  $this->payment = $payment;
}