public function PluginSettingsBase::getDefaultSettings

Implements Drupal\field\Plugin\PluginSettingsInterface::getDefaultSettings().

Overrides PluginSettingsInterface::getDefaultSettings

1 call to PluginSettingsBase::getDefaultSettings()
PluginSettingsBase::mergeDefaults in drupal/core/modules/field/lib/Drupal/field/Plugin/PluginSettingsBase.php
Merges default settings values into $settings.

File

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

Class

PluginSettingsBase
Base class for the Field API plugins.

Namespace

Drupal\field\Plugin

Code

public function getDefaultSettings() {
  $definition = $this
    ->getPluginDefinition();
  return $definition['settings'];
}