public function PluginSettingsBase::setSetting

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

Overrides PluginSettingsInterface::setSetting

File

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

Class

PluginSettingsBase
Base class for the Field API plugins.

Namespace

Drupal\field\Plugin

Code

public function setSetting($key, $value) {
  $this->settings[$key] = $value;
  return $this;
}