You are here

public function PaymentExecutionPaymentMethodManager::getOperationsProvider in Payment 8.2

Gets the plugin's operations provider.

Parameters

string $plugin_id:

Return value

\Drupal\plugin\PluginOperationsProviderInterface|null The operations provider or NULL if none is available.

Throws

\Drupal\Component\Plugin\Exception\PluginNotFoundException

Overrides PluginOperationsProviderProviderInterface::getOperationsProvider

File

src/Plugin/Payment/Method/PaymentExecutionPaymentMethodManager.php, line 75

Class

PaymentExecutionPaymentMethodManager
Provides a payment method manager for executing a payment.

Namespace

Drupal\payment\Plugin\Payment\Method

Code

public function getOperationsProvider($plugin_id) {
  if ($this
    ->hasDefinition($plugin_id)) {
    return $this->decoratedPaymentMethodManager
      ->getOperationsProvider($plugin_id);
  }
  else {
    throw new PluginNotFoundException($plugin_id);
  }
}