function PluginSettingsBase::getSettings

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

Overrides PluginSettingsInterface::getSettings

5 calls to PluginSettingsBase::getSettings()
LinkFormatter::buildUrl in core/modules/link/src/Plugin/Field/FieldFormatter/LinkFormatter.php
Builds the \Drupal\Core\Url object for a link field item.
LinkFormatter::settingsSummary in core/modules/link/src/Plugin/Field/FieldFormatter/LinkFormatter.php
Returns a short summary for the current formatter settings.
LinkFormatter::viewElements in core/modules/link/src/Plugin/Field/FieldFormatter/LinkFormatter.php
Builds a renderable array for a field value.
LinkSeparateFormatter::viewElements in core/modules/link/src/Plugin/Field/FieldFormatter/LinkSeparateFormatter.php
Builds a renderable array for a field value.
TelephoneLinkFormatter::settingsSummary in core/modules/telephone/src/Plugin/Field/FieldFormatter/TelephoneLinkFormatter.php
Returns a short summary for the current formatter settings.

File

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

Class

PluginSettingsBase
Base class for the Field API plugins.

Namespace

Drupal\Core\Field

Code

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

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