You are here

public function ShippingQuotePluginBase::getDisplayLabel in Ubercart 8.4

Returns the shipping quote method label with logo.

Parameters

string $label: The shipping quote method label to be styled.

Return value

array A render array containing the formatted shipping quote method label.

Overrides ShippingQuotePluginInterface::getDisplayLabel

2 methods override ShippingQuotePluginBase::getDisplayLabel()
UPSRateBase::getDisplayLabel in shipping/uc_ups/src/Plugin/Ubercart/ShippingQuote/UPSRateBase.php
Returns the shipping quote method label with logo.
USPSRateBase::getDisplayLabel in shipping/uc_usps/src/Plugin/Ubercart/ShippingQuote/USPSRateBase.php
Returns the shipping quote method label with logo.

File

shipping/uc_quote/src/ShippingQuotePluginBase.php, line 52

Class

ShippingQuotePluginBase
Base class for shipping quote plugins.

Namespace

Drupal\uc_quote

Code

public function getDisplayLabel($label) {
  return [
    '#plain_text' => $label,
  ];
}