You are here

public function ShippingQuoteMethod::getDisplayLabel in Ubercart 8.4

Returns the shipping quote method label with logo.

Return value

string A string containing the HTML rendered label.

Overrides ShippingQuoteMethodInterface::getDisplayLabel

File

shipping/uc_quote/src/Entity/ShippingQuoteMethod.php, line 112

Class

ShippingQuoteMethod
Defines the shipping quote method configuration entity.

Namespace

Drupal\uc_quote\Entity

Code

public function getDisplayLabel() {
  $build = $this
    ->getPlugin()
    ->getDisplayLabel($this
    ->label());
  return \Drupal::service('renderer')
    ->renderPlain($build);
}