You are here

protected function OnsitePaymentGatewayBase::getDefaultForms in Commerce Core 8.2

Gets the default payment gateway forms.

Return value

array A list of plugin form classes keyed by operation.

Overrides PaymentGatewayBase::getDefaultForms

File

modules/payment/src/Plugin/Commerce/PaymentGateway/OnsitePaymentGatewayBase.php, line 27

Class

OnsitePaymentGatewayBase
Provides the base class for on-site payment gateways.

Namespace

Drupal\commerce_payment\Plugin\Commerce\PaymentGateway

Code

protected function getDefaultForms() {
  return [
    'add-payment' => 'Drupal\\commerce_payment\\PluginForm\\OnsitePaymentAddForm',
  ] + parent::getDefaultForms();
}