function PluginSettingsInterface::setSettings
Same name in other branches
- 9 core/lib/Drupal/Core/Field/PluginSettingsInterface.php \Drupal\Core\Field\PluginSettingsInterface::setSettings()
- 8.9.x core/lib/Drupal/Core/Field/PluginSettingsInterface.php \Drupal\Core\Field\PluginSettingsInterface::setSettings()
- 10 core/lib/Drupal/Core/Field/PluginSettingsInterface.php \Drupal\Core\Field\PluginSettingsInterface::setSettings()
Sets the settings for the plugin.
Parameters
array $settings: The array of settings, keyed by setting names. Missing settings will be assigned their default values.
Return value
$this
1 method overrides PluginSettingsInterface::setSettings()
- PluginSettingsBase::setSettings in core/
lib/ Drupal/ Core/ Field/ PluginSettingsBase.php - Sets the settings for the plugin.
File
-
core/
lib/ Drupal/ Core/ Field/ PluginSettingsInterface.php, line 52
Class
- PluginSettingsInterface
- Interface definition for plugin with settings.
Namespace
Drupal\Core\FieldCode
public function setSettings(array $settings);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.