You are here

public static function SimpleStockLevelWidget::defaultSettings in Commerce Stock 8

Defines the default settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides PluginSettingsBase::defaultSettings

File

modules/field/src/Plugin/Field/FieldWidget/SimpleStockLevelWidget.php, line 81

Class

SimpleStockLevelWidget
Plugin implementation of the 'commerce_stock_level' widget.

Namespace

Drupal\commerce_stock_field\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'transaction_note' => FALSE,
    'entry_system' => 'simple',
    'context_fallback' => FALSE,
  ] + parent::defaultSettings();
}