You are here

public static function OptionsShsWidget::defaultSettings in Simple hierarchical select 2.0.x

Same name and namespace in other branches
  1. 8 src/Plugin/Field/FieldWidget/OptionsShsWidget.php \Drupal\shs\Plugin\Field\FieldWidget\OptionsShsWidget::defaultSettings()

Defines the default settings for this plugin.

Return value

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

Overrides PluginSettingsBase::defaultSettings

1 call to OptionsShsWidget::defaultSettings()
OptionsShsChosenWidget::defaultSettings in modules/shs_chosen/src/Plugin/Field/FieldWidget/OptionsShsChosenWidget.php
Defines the default settings for this plugin.
1 method overrides OptionsShsWidget::defaultSettings()
OptionsShsChosenWidget::defaultSettings in modules/shs_chosen/src/Plugin/Field/FieldWidget/OptionsShsChosenWidget.php
Defines the default settings for this plugin.

File

src/Plugin/Field/FieldWidget/OptionsShsWidget.php, line 80

Class

OptionsShsWidget
Plugin implementation of the 'options_shs' widget.

Namespace

Drupal\shs\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  $settings_default = [
    'display_node_count' => FALSE,
    'create_new_items' => FALSE,
    'create_new_levels' => FALSE,
    'force_deepest' => FALSE,
  ];
  return $settings_default + parent::defaultSettings();
}