You are here

public function WebformThirdPartySettingsManager::setThirdPartySetting in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/WebformThirdPartySettingsManager.php \Drupal\webform\WebformThirdPartySettingsManager::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

src/WebformThirdPartySettingsManager.php, line 100

Class

WebformThirdPartySettingsManager
Webform third party settings manager.

Namespace

Drupal\webform

Code

public function setThirdPartySetting($module, $key, $value) {
  $config = $this->configFactory
    ->getEditable('webform.settings');
  $config
    ->set("third_party_settings.{$module}.{$key}", $value);
  $config
    ->save();
  return $this;
}