You are here

public static function TermReferenceTree::defaultSettings in Taxonomy Term Reference Tree Widget 8

Same name in this branch
  1. 8 src/Plugin/Field/FieldFormatter/TermReferenceTree.php \Drupal\term_reference_tree\Plugin\Field\FieldFormatter\TermReferenceTree::defaultSettings()
  2. 8 src/Plugin/Field/FieldWidget/TermReferenceTree.php \Drupal\term_reference_tree\Plugin\Field\FieldWidget\TermReferenceTree::defaultSettings()

Defines the default settings for this plugin.

Return value

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

Overrides PluginSettingsBase::defaultSettings

File

src/Plugin/Field/FieldWidget/TermReferenceTree.php, line 34

Class

TermReferenceTree
Plugin implementation of the 'term_reference_tree' widget.

Namespace

Drupal\term_reference_tree\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'start_minimized' => TRUE,
    'leaves_only' => FALSE,
    'select_parents' => FALSE,
    'cascading_selection' => self::CASCADING_SELECTION_NONE,
    'max_depth' => 0,
  ] + parent::defaultSettings();
}