You are here

public function PluginSettingsBase::setThirdPartySetting in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Field/PluginSettingsBase.php \Drupal\Core\Field\PluginSettingsBase::setThirdPartySetting()

Sets the value of a third-party setting.

Parameters

string $module: The module providing the third-party setting.

string $key: The setting name.

mixed $value: The setting value.

Return value

$this

Overrides ThirdPartySettingsInterface::setThirdPartySetting

File

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

Class

PluginSettingsBase
Base class for the Field API plugins.

Namespace

Drupal\Core\Field

Code

public function setThirdPartySetting($module, $key, $value) {
  $this->thirdPartySettings[$module][$key] = $value;
  return $this;
}