You are here

public function PaymentMethodTypeInterface::buildLabel in Commerce Core 8.2

Builds a label for the given payment method.

Parameters

\Drupal\commerce_payment\Entity\PaymentMethodInterface $payment_method: The payment method.

Return value

string The label.

2 methods override PaymentMethodTypeInterface::buildLabel()
CreditCard::buildLabel in modules/payment/src/Plugin/Commerce/PaymentMethodType/CreditCard.php
Builds a label for the given payment method.
PayPal::buildLabel in modules/payment/src/Plugin/Commerce/PaymentMethodType/PayPal.php
Builds a label for the given payment method.

File

modules/payment/src/Plugin/Commerce/PaymentMethodType/PaymentMethodTypeInterface.php, line 38

Class

PaymentMethodTypeInterface
Defines the interface for payment method types.

Namespace

Drupal\commerce_payment\Plugin\Commerce\PaymentMethodType

Code

public function buildLabel(PaymentMethodInterface $payment_method);