protected function OrderWeightTotal::defineOptions in Ubercart 8.4
Information about options for all kinds of purposes will be held here.
'option_name' => array(
- 'default' => default value,
- 'contains' => (optional) array of items this contains, with its own
defaults, etc. If contains is set, the default will be ignored and
assumed to be array().
),
Return value
array Returns the options of this handler/plugin.
Overrides Weight::defineOptions
File
- uc_order/
src/ Plugin/ views/ field/ OrderWeightTotal.php, line 24
Class
- OrderWeightTotal
- Total weight field handler.
Namespace
Drupal\uc_order\Plugin\views\fieldCode
protected function defineOptions() {
$options = parent::defineOptions();
$store_config = \Drupal::config('uc_store.settings');
$options['weight_units'] = [
'default' => $store_config
->get('weight.units'),
];
return $options;
}