You are here

public static function EntityReferenceHierarchyAutocomplete::defaultSettings in Entity Reference Hierarchy 8.2

Same name and namespace in other branches
  1. 3.x src/Plugin/Field/FieldWidget/EntityReferenceHierarchyAutocomplete.php \Drupal\entity_hierarchy\Plugin\Field\FieldWidget\EntityReferenceHierarchyAutocomplete::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/EntityReferenceHierarchyAutocomplete.php, line 41

Class

EntityReferenceHierarchyAutocomplete
Widget that uses autocomplete.

Namespace

Drupal\entity_hierarchy\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return parent::defaultSettings() + [
    self::HIDE_WEIGHT => FALSE,
  ];
}