You are here

function mollie_payment_payment_method_update in Mollie Payment 7

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

Implements hook_ENTITY_TYPE_ACTION().

File

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

Code

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