You are here

PayPalBasicOperationsProvider.php in PayPal for Payment 8

Same filename and directory in other branches
  1. 2.0.x src/Plugin/Payment/Method/PayPalBasicOperationsProvider.php

File

src/Plugin/Payment/Method/PayPalBasicOperationsProvider.php
View source
<?php

namespace Drupal\paypal_payment\Plugin\Payment\Method;

use Drupal\payment\Plugin\Payment\Method\BasicOperationsProvider;

/**
 * Abstract class for PayPal payment method operation providers.
 */
abstract class PayPalBasicOperationsProvider extends BasicOperationsProvider {

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

}

Classes

Namesort descending Description
PayPalBasicOperationsProvider Abstract class for PayPal payment method operation providers.