public static function EntityReferenceTreeWidget::defaultSettings in Entity Reference Tree Widget 8
Same name and namespace in other branches
- 2.x src/Plugin/Field/FieldWidget/EntityReferenceTreeWidget.php \Drupal\entity_reference_tree\Plugin\Field\FieldWidget\EntityReferenceTreeWidget::defaultSettings()
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides EntityReferenceAutocompleteWidget::defaultSettings
File
- src/
Plugin/ Field/ FieldWidget/ EntityReferenceTreeWidget.php, line 106
Class
- EntityReferenceTreeWidget
- A entity reference tree widget.
Namespace
Drupal\entity_reference_tree\Plugin\Field\FieldWidgetCode
public static function defaultSettings() {
return [
// JsTree theme
'theme' => 'default',
// Using dot line.
'dots' => 0,
// Button label.
'label' => '',
] + parent::defaultSettings();
}