You are here

protected function PayPalBasicOperationsProvider::getPaymentMethodConfiguration in PayPal for Payment 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/Payment/Method/PayPalBasicOperationsProvider.php \Drupal\paypal_payment\Plugin\Payment\Method\PayPalBasicOperationsProvider::getPaymentMethodConfiguration()

Gets the payment method configuration entity for this plugin.

Parameters

string $plugin_id: This plugin's ID.

Return value

\Drupal\payment\Entity\PaymentMethodConfigurationInterface

Overrides BasicOperationsProvider::getPaymentMethodConfiguration

File

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

Class

PayPalBasicOperationsProvider
Abstract class for PayPal payment method operation providers.

Namespace

Drupal\paypal_payment\Plugin\Payment\Method

Code

protected function getPaymentMethodConfiguration($plugin_id) {
  $entity_id = explode(':', $plugin_id)[1];
  return $this->paymentMethodConfigurationStorage
    ->load($entity_id);
}