You are here

public function FlatRate::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/FlatRate.php, line 79

Class

FlatRate
Provides a flat 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' => uc_currency_format($this->configuration['product_rate']),
  ]);
}