You are here

protected function MolliePaymentOperationsProvider::getPaymentMethodConfiguration in Mollie Payment 8.2

Gets the payment method configuration entity for this plugin.

Parameters

string $plugin_id: This plugin's ID.

Return value

\Drupal\payment\Entity\PaymentMethodConfigurationInterface

Overrides PaymentMethodConfigurationOperationsProvider::getPaymentMethodConfiguration

File

src/Plugin/Payment/Method/MolliePaymentOperationsProvider.php, line 15

Class

MolliePaymentOperationsProvider
Provides mollie_payment operations based on config entities.

Namespace

Drupal\mollie_payment\Plugin\Payment\Method

Code

protected function getPaymentMethodConfiguration($plugin_id) {
  $entity_id = substr($plugin_id, 15);
  return $this->paymentMethodConfigurationStorage
    ->load($entity_id);
}