protected function PluginSettingsBase::mergeDefaults

Merges default settings values into $settings.

2 calls to PluginSettingsBase::mergeDefaults()

File

drupal/core/modules/field/lib/Drupal/field/Plugin/PluginSettingsBase.php, line 59
Definition of Drupal\field\Plugin\PluginSettingsBase.

Class

PluginSettingsBase
Base class for the Field API plugins.

Namespace

Drupal\field\Plugin

Code

protected function mergeDefaults() {
  $this->settings += $this
    ->getDefaultSettings();
  $this->defaultSettingsMerged = TRUE;
}