You are here

public static function EntityReferenceHierarchySelect::defaultSettings in Entity Reference Hierarchy 3.x

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

Class

EntityReferenceHierarchySelect
Select widget.

Namespace

Drupal\entity_hierarchy\Plugin\Field\FieldWidget

Code

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