function PluginSettingsBase::setSetting
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Field/PluginSettingsBase.php \Drupal\Core\Field\PluginSettingsBase::setSetting()
- 8.9.x core/lib/Drupal/Core/Field/PluginSettingsBase.php \Drupal\Core\Field\PluginSettingsBase::setSetting()
- 11.x core/lib/Drupal/Core/Field/PluginSettingsBase.php \Drupal\Core\Field\PluginSettingsBase::setSetting()
Sets the value of a setting for the plugin.
Parameters
string $key: The setting name.
mixed $value: The setting value.
Return value
$this
Overrides PluginSettingsInterface::setSetting
File
-
core/
lib/ Drupal/ Core/ Field/ PluginSettingsBase.php, line 87
Class
- PluginSettingsBase
- Base class for the Field API plugins.
Namespace
Drupal\Core\FieldCode
public function setSetting($key, $value) {
$this->settings[$key] = $value;
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.