You are here

protected function Price::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 Price::defineOptions()
DisplayPrice::defineOptions in uc_product/src/Plugin/views/field/DisplayPrice.php
Information about options for all kinds of purposes will be held here.
1 method overrides Price::defineOptions()
DisplayPrice::defineOptions in uc_product/src/Plugin/views/field/DisplayPrice.php
Information about options for all kinds of purposes will be held here.

File

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

Class

Price
Field handler to provide formatted prices.

Namespace

Drupal\uc_store\Plugin\views\field

Code

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