public function PluginSettingsBase::getSettings

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

Overrides PluginSettingsInterface::getSettings

5 calls to PluginSettingsBase::getSettings()
LegacyFormatter::prepareView in drupal/core/modules/field/lib/Drupal/field/Plugin/field/formatter/LegacyFormatter.php
Implements Drupal\field\Plugin\Type\Formatter\FormatterInterface::prepareView().
LegacyFormatter::settingsForm in drupal/core/modules/field/lib/Drupal/field/Plugin/field/formatter/LegacyFormatter.php
Implements Drupal\field\Plugin\Type\Formatter\FormatterInterface::settingsForm().
LegacyFormatter::settingsSummary in drupal/core/modules/field/lib/Drupal/field/Plugin/field/formatter/LegacyFormatter.php
Implements Drupal\field\Plugin\Type\Formatter\FormatterInterface::settingsSummary().
LegacyFormatter::viewElements in drupal/core/modules/field/lib/Drupal/field/Plugin/field/formatter/LegacyFormatter.php
Implements Drupal\field\Plugin\Type\Formatter\FormatterInterface::viewElements().
LegacyWidget::formElement in drupal/core/modules/field/lib/Drupal/field/Plugin/field/widget/LegacyWidget.php
Implements Drupal\field\Plugin\Type\Widget\WidgetInterface::formElement().

File

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

Class

PluginSettingsBase
Base class for the Field API plugins.

Namespace

Drupal\field\Plugin

Code

public function getSettings() {

  // Merge defaults before returning the array.
  if (!$this->defaultSettingsMerged) {
    $this
      ->mergeDefaults();
  }
  return $this->settings;
}