You are here

public function EntityCrud::__construct in Payment 8.2

Constructs a new instance.

Parameters

\Drupal\payment\Plugin\Payment\Method\PaymentMethodManagerInterface $payment_method_manager: The payment method plugin manager.

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

File

src/Hook/EntityCrud.php, line 37

Class

EntityCrud
Implements hook_entity_CRUD().

Namespace

Drupal\payment\Hook

Code

public function __construct(PaymentMethodManagerInterface $payment_method_manager, PaymentStatusManagerInterface $payment_status_manager) {
  $this->paymentMethodManager = $payment_method_manager;
  $this->paymentStatusManager = $payment_status_manager;
}