You are here

public function PluginSettingsBase::setSettings in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Field/PluginSettingsBase.php \Drupal\Core\Field\PluginSettingsBase::setSettings()
  2. 10 core/lib/Drupal/Core/Field/PluginSettingsBase.php \Drupal\Core\Field\PluginSettingsBase::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

Overrides PluginSettingsInterface::setSettings

File

core/lib/Drupal/Core/Field/PluginSettingsBase.php, line 78

Class

PluginSettingsBase
Base class for the Field API plugins.

Namespace

Drupal\Core\Field

Code

public function setSettings(array $settings) {
  $this->settings = $settings;
  $this->defaultSettingsMerged = FALSE;
  return $this;
}