public function WeightQuote::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/ WeightQuote.php, line 81
Class
- WeightQuote
- Assigns a shipping rate to products based on weight.
Namespace
Drupal\uc_quote\Plugin\Ubercart\ShippingQuoteCode
public function getDescription() {
return $this
->t('@base_rate + @product_rate per @unit', [
'@base_rate' => uc_currency_format($this->configuration['base_rate']),
'@product_rate' => uc_currency_format($this->configuration['product_rate']),
'@unit' => \Drupal::config('uc_store.settings')
->get('weight.units'),
]);
}