You are here

public function PercentageRate::getDescription in Ubercart 8.4

Returns a description of this shipping quote.

Return value

string The description.

Overrides ShippingQuotePluginInterface::getDescription

File

shipping/uc_quote/src/Plugin/Ubercart/ShippingQuote/PercentageRate.php, line 82

Class

PercentageRate
Provides a percentage rate shipping quote plugin.

Namespace

Drupal\uc_quote\Plugin\Ubercart\ShippingQuote

Code

public function getDescription() {
  return $this
    ->t('@base_rate + @product_rate% per item', [
    '@base_rate' => uc_currency_format($this->configuration['base_rate']),
    '@product_rate' => $this->configuration['product_rate'],
  ]);
}