function PluginSettingsInterface::setSetting
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Field/PluginSettingsInterface.php \Drupal\Core\Field\PluginSettingsInterface::setSetting()
- 10 core/lib/Drupal/Core/Field/PluginSettingsInterface.php \Drupal\Core\Field\PluginSettingsInterface::setSetting()
- 11.x core/lib/Drupal/Core/Field/PluginSettingsInterface.php \Drupal\Core\Field\PluginSettingsInterface::setSetting()
Sets the value of a setting for the plugin.
Parameters
string $key: The setting name.
mixed $value: The setting value.
Return value
$this
1 method overrides PluginSettingsInterface::setSetting()
- PluginSettingsBase::setSetting in core/
lib/ Drupal/ Core/ Field/ PluginSettingsBase.php - Sets the value of a setting for the plugin.
File
-
core/
lib/ Drupal/ Core/ Field/ PluginSettingsInterface.php, line 64
Class
- PluginSettingsInterface
- Interface definition for plugin with settings.
Namespace
Drupal\Core\FieldCode
public function setSetting($key, $value);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.