You are here

public static function StockLevelWidgetBase::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/StockLevelWidgetBase.php, line 65

Class

StockLevelWidgetBase
Provides the base structure for commerce stock level widgets.

Namespace

Drupal\commerce_stock_field\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'custom_transaction_note' => FALSE,
    'default_transaction_note' => t('Transaction issued by stock level field.'),
    'step' => '1',
  ] + parent::defaultSettings();
}