public function OrderTotalWeightCondition::weightUnitsOptions in Ubercart 8.4
Weight units options callback.
File
- uc_order/
src/ Plugin/ Condition/ OrderTotalWeightCondition.php, line 64
Class
- OrderTotalWeightCondition
- Provides 'Order total weight' condition.
Namespace
Drupal\uc_order\Plugin\ConditionCode
public function weightUnitsOptions() {
return [
'lb' => $this
->t('Pounds'),
'kg' => $this
->t('Kilograms'),
'oz' => $this
->t('Ounces'),
'g' => $this
->t('Grams'),
];
}