public function PaymentMethodPluginBase::getDisplayLabel in Ubercart 8.4
Returns the payment method label with logo.
Parameters
string $label: The payment method label to be styled.
Return value
array A render array containing the formatted payment method label.
Overrides PaymentMethodPluginInterface::getDisplayLabel
3 methods override PaymentMethodPluginBase::getDisplayLabel()
- CreditCardPaymentMethodBase::getDisplayLabel in payment/
uc_credit/ src/ CreditCardPaymentMethodBase.php - Returns the payment method label with logo.
- PayPalPaymentsStandard::getDisplayLabel in payment/
uc_paypal/ src/ Plugin/ Ubercart/ PaymentMethod/ PayPalPaymentsStandard.php - Returns the payment method label with logo.
- TwoCheckout::getDisplayLabel in payment/
uc_2checkout/ src/ Plugin/ Ubercart/ PaymentMethod/ TwoCheckout.php - Returns the payment method label with logo.
File
- payment/
uc_payment/ src/ PaymentMethodPluginBase.php, line 58
Class
- PaymentMethodPluginBase
- Defines a base payment method plugin implementation.
Namespace
Drupal\uc_paymentCode
public function getDisplayLabel($label) {
return [
'#plain_text' => $label,
];
}