You are here

public function PaymentGatewayBase::getLabel in Commerce Core 8.2

Gets the payment gateway label.

The label is admin-facing and usually includes the name of the used API. For example: "Braintree (Hosted Fields)".

Return value

mixed The payment gateway label.

Overrides PaymentGatewayInterface::getLabel

File

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

Class

PaymentGatewayBase
Provides the base class for payment gateways.

Namespace

Drupal\commerce_payment\Plugin\Commerce\PaymentGateway

Code

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