You are here

protected function BasicOperationsProvider::getPaymentMethodConfiguration in 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/BasicOperationsProvider.php, line 17

Class

BasicOperationsProvider
Provides payment_basic operations based on config entities.

Namespace

Drupal\payment\Plugin\Payment\Method

Code

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