You are here

public function PluginSettingsBase::setThirdPartySetting in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 117
Contains \Drupal\Core\Field\PluginSettingsBase.

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;
}