You are here

public function PaymentMethodManager::getFallbackPluginId in Payment 8.2

Gets a fallback id for a missing plugin.

Parameters

string $plugin_id: The ID of the missing requested plugin.

array $configuration: An array of configuration relevant to the plugin instance.

Return value

string The id of an existing plugin to use when the plugin does not exist.

Overrides FallbackPluginManagerInterface::getFallbackPluginId

File

src/Plugin/Payment/Method/PaymentMethodManager.php, line 49

Class

PaymentMethodManager
Manages discovery and instantiation of payment method plugins.

Namespace

Drupal\payment\Plugin\Payment\Method

Code

public function getFallbackPluginId($plugin_id, array $configuration = []) {
  return 'payment_unavailable';
}