public function PluginSettingsBase::getSetting

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

Overrides PluginSettingsInterface::getSetting

41 calls to PluginSettingsBase::getSetting()
DefaultNumberFormatter::settingsForm in drupal/core/modules/field/modules/number/lib/Drupal/number/Plugin/field/formatter/DefaultNumberFormatter.php
Implements Drupal\field\Plugin\Type\Formatter\FormatterInterface::settingsForm().
DefaultNumberFormatter::settingsSummary in drupal/core/modules/field/modules/number/lib/Drupal/number/Plugin/field/formatter/DefaultNumberFormatter.php
Implements Drupal\field\Plugin\Type\Formatter\FormatterInterface::settingsForm().
DefaultNumberFormatter::viewElements in drupal/core/modules/field/modules/number/lib/Drupal/number/Plugin/field/formatter/DefaultNumberFormatter.php
Implements Drupal\field\Plugin\Type\Formatter\FormatterInterface::viewElements().
EmailDefaultWidget::formElement in drupal/core/modules/field/modules/email/lib/Drupal/email/Plugin/field/widget/EmailDefaultWidget.php
Implements Drupal\field\Plugin\Type\Widget\WidgetInterface::formElement().
EmailDefaultWidget::settingsForm in drupal/core/modules/field/modules/email/lib/Drupal/email/Plugin/field/widget/EmailDefaultWidget.php
Implements Drupal\field\Plugin\Type\Widget\WidgetInterface::settingsForm().

... See full list

File

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

Class

PluginSettingsBase
Base class for the Field API plugins.

Namespace

Drupal\field\Plugin

Code

public function getSetting($key) {

  // Merge defaults if we have no value for the key.
  if (!$this->defaultSettingsMerged && !array_key_exists($key, $this->settings)) {
    $this
      ->mergeDefaults();
  }
  return isset($this->settings[$key]) ? $this->settings[$key] : NULL;
}