public function PluginSettingsBase::getSettings

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

Overrides PluginSettingsInterface::getSettings

6 calls to PluginSettingsBase::getSettings()
LinkFormatter::prepareView in drupal/core/modules/link/lib/Drupal/link/Plugin/field/formatter/LinkFormatter.php
Allows formatters to load information for field values being displayed.
LinkFormatter::settingsSummary in drupal/core/modules/link/lib/Drupal/link/Plugin/field/formatter/LinkFormatter.php
Returns a short summary for the current formatter settings.
LinkFormatter::viewElements in drupal/core/modules/link/lib/Drupal/link/Plugin/field/formatter/LinkFormatter.php
Builds a renderable array for a field value.
LinkSeparateFormatter::viewElements in drupal/core/modules/link/lib/Drupal/link/Plugin/field/formatter/LinkSeparateFormatter.php
Builds a renderable array for a field value.
TelephoneLinkFormatter::prepareView in drupal/core/modules/telephone/lib/Drupal/telephone/Plugin/field/formatter/TelephoneLinkFormatter.php
Allows formatters to load information for field values being displayed.

... See full list

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;
}