You are here

public static function BulkSkuWidget::defaultSettings in Commerce Bulk 8

Defines the default settings for this plugin.

Return value

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

Overrides StringTextfieldWidget::defaultSettings

File

src/Plugin/Field/FieldWidget/BulkSkuWidget.php, line 27

Class

BulkSkuWidget
Plugin implementation of the 'commerce_bulk_sku' widget.

Namespace

Drupal\commerce_bulk\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'custom_label' => '',
    'uniqid_enabled' => TRUE,
    'more_entropy' => FALSE,
    'hide' => FALSE,
    'prefix' => 'sku-',
    'suffix' => '',
    'size' => 60,
    'placeholder' => '',
    'maximum' => 500,
  ] + parent::defaultSettings();
}