function PluginSettingsBase::defaultSettings

Same name in other branches
  1. 9 core/lib/Drupal/Core/Field/PluginSettingsBase.php \Drupal\Core\Field\PluginSettingsBase::defaultSettings()
  2. 8.9.x core/lib/Drupal/Core/Field/PluginSettingsBase.php \Drupal\Core\Field\PluginSettingsBase::defaultSettings()
  3. 11.x core/lib/Drupal/Core/Field/PluginSettingsBase.php \Drupal\Core\Field\PluginSettingsBase::defaultSettings()

Overrides PluginSettingsInterface::defaultSettings

1 call to PluginSettingsBase::defaultSettings()
PluginSettingsBase::mergeDefaults in core/lib/Drupal/Core/Field/PluginSettingsBase.php
Merges default settings values into $settings.
42 methods override PluginSettingsBase::defaultSettings()
BaseFieldFileFormatterBase::defaultSettings in core/modules/file/src/Plugin/Field/FieldFormatter/BaseFieldFileFormatterBase.php
Defines the default settings for this plugin.
BooleanCheckboxWidget::defaultSettings in core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/BooleanCheckboxWidget.php
Defines the default settings for this plugin.
BooleanFormatter::defaultSettings in core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/BooleanFormatter.php
Defines the default settings for this plugin.
CommentDefaultFormatter::defaultSettings in core/modules/comment/src/Plugin/Field/FieldFormatter/CommentDefaultFormatter.php
Defines the default settings for this plugin.
DateRangeDatelistWidget::defaultSettings in core/modules/datetime_range/src/Plugin/Field/FieldWidget/DateRangeDatelistWidget.php
Defines the default settings for this plugin.

... See full list

File

core/lib/Drupal/Core/Field/PluginSettingsBase.php, line 41

Class

PluginSettingsBase
Base class for the Field API plugins.

Namespace

Drupal\Core\Field

Code

public static function defaultSettings() {
    return [];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.