You are here

public static function TreeWidget::defaultSettings in Field Menu 8

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/TreeWidget.php, line 75

Class

TreeWidget
Plugin implementation of the 'field_menu_tree_widget' widget.

Namespace

Drupal\field_menu\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'max_depth' => 0,
    'menu_item_key' => '',
    'include_root' => FALSE,
    'menu_title' => '',
  ] + parent::defaultSettings();
}