public static function TermReferenceTree::defaultSettings in Taxonomy Term Reference Tree Widget 8
Same name in this branch
- 8 src/Plugin/Field/FieldFormatter/TermReferenceTree.php \Drupal\term_reference_tree\Plugin\Field\FieldFormatter\TermReferenceTree::defaultSettings()
- 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\FieldWidgetCode
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();
}