You are here

protected function Weight::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 NumericField::defineOptions

1 call to Weight::defineOptions()
OrderWeightTotal::defineOptions in uc_order/src/Plugin/views/field/OrderWeightTotal.php
Information about options for all kinds of purposes will be held here.
1 method overrides Weight::defineOptions()
OrderWeightTotal::defineOptions in uc_order/src/Plugin/views/field/OrderWeightTotal.php
Information about options for all kinds of purposes will be held here.

File

uc_store/src/Plugin/views/field/Weight.php, line 21

Class

Weight
Field handler to provide formatted weights.

Namespace

Drupal\uc_store\Plugin\views\field

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['format'] = [
    'default' => 'uc_weight',
  ];
  return $options;
}