public function PaymentMethod::getDisplayLabel in Ubercart 8.4
Returns the payment method label with logo.
Return value
string A string containing the HTML rendered label.
Overrides PaymentMethodInterface::getDisplayLabel
File
- payment/
uc_payment/ src/ Entity/ PaymentMethod.php, line 130
Class
- PaymentMethod
- Defines a configured payment method.
Namespace
Drupal\uc_payment\EntityCode
public function getDisplayLabel() {
$build = $this
->getPlugin()
->getDisplayLabel($this
->label());
return \Drupal::service('renderer')
->renderPlain($build);
}