You are here

public function PaymentGatewayBase::getSupportedModes in Commerce Core 8.2

Gets the supported modes.

Return value

string[] The mode labels keyed by machine name.

Overrides PaymentGatewayInterface::getSupportedModes

2 calls to PaymentGatewayBase::getSupportedModes()
PaymentGatewayBase::buildConfigurationForm in modules/payment/src/Plugin/Commerce/PaymentGateway/PaymentGatewayBase.php
Form constructor.
PaymentGatewayBase::defaultConfiguration in modules/payment/src/Plugin/Commerce/PaymentGateway/PaymentGatewayBase.php
Gets default configuration for this plugin.

File

modules/payment/src/Plugin/Commerce/PaymentGateway/PaymentGatewayBase.php, line 222

Class

PaymentGatewayBase
Provides the base class for payment gateways.

Namespace

Drupal\commerce_payment\Plugin\Commerce\PaymentGateway

Code

public function getSupportedModes() {
  return $this->pluginDefinition['modes'];
}