You are here

class BasicOperationsProvider in Payment 8.2

Provides payment_basic operations based on config entities.

Hierarchy

Expanded class hierarchy of BasicOperationsProvider

1 file declares its use of BasicOperationsProvider
BasicOperationsProviderTest.php in tests/src/Unit/Plugin/Payment/Method/BasicOperationsProviderTest.php

File

src/Plugin/Payment/Method/BasicOperationsProvider.php, line 12

Namespace

Drupal\payment\Plugin\Payment\Method
View source
class BasicOperationsProvider extends PaymentMethodConfigurationOperationsProvider {

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

}

Members

Namesort descending Modifiers Type Description Overrides
BasicOperationsProvider::getPaymentMethodConfiguration protected function Gets the payment method configuration entity for this plugin. Overrides PaymentMethodConfigurationOperationsProvider::getPaymentMethodConfiguration
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.
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.