You are here

abstract class PayPalBasicOperationsProvider 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

Abstract class for PayPal payment method operation providers.

Hierarchy

Expanded class hierarchy of PayPalBasicOperationsProvider

File

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

Namespace

Drupal\paypal_payment\Plugin\Payment\Method
View source
abstract class PayPalBasicOperationsProvider extends BasicOperationsProvider {

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

}

Members

Namesort descending Modifiers Type Description Overrides
PaymentMethodConfigurationOperationsProvider::$paymentMethodConfigurationListBuilder protected property The payment method configuration list builder.
PaymentMethodConfigurationOperationsProvider::$paymentMethodConfigurationStorage protected property The payment method configuration storage.
PaymentMethodConfigurationOperationsProvider::$redirectDestination protected property The redirect destination.
PaymentMethodConfigurationOperationsProvider::create public static function Instantiates a new instance of this class. Overrides ContainerInjectionInterface::create
PaymentMethodConfigurationOperationsProvider::getOperations public function Gets plugin operations. Overrides PluginOperationsProviderInterface::getOperations
PaymentMethodConfigurationOperationsProvider::__construct public function Constructs a new instance.
PayPalBasicOperationsProvider::getPaymentMethodConfiguration protected function Gets the payment method configuration entity for this plugin. Overrides BasicOperationsProvider::getPaymentMethodConfiguration
StringTranslationTrait::$stringTranslation protected property The string translation service. 1
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation protected function Gets the string translation service.
StringTranslationTrait::setStringTranslation public function Sets the string translation service to use. 2
StringTranslationTrait::t protected function Translates a string to the current language or to a given language.