You are here

function mollie_payment_payment_method_insert in Mollie Payment 7

Same name and namespace in other branches
  1. 7.2 mollie_payment.module \mollie_payment_payment_method_insert()

Implements hook_ENTITY_TYPE_ACTION().

File

./mollie_payment.module, line 101
Provides Mollie integration for the Payment platform.

Code

function mollie_payment_payment_method_insert(PaymentMethod $payment_method) {
  if ($payment_method->controller->name == 'MolliePaymentMethodController') {
    mollie_payment_payment_method_configuration_save($payment_method->pmid, $payment_method->controller_data);
  }
}