public function YamlFormThirdPartySettingsManager::unsetThirdPartySetting in YAML Form 8
Unsets a third-party setting.
Parameters
string $module: The module providing the third-party setting.
string $key: The setting name.
Return value
mixed The value.
Overrides ThirdPartySettingsInterface::unsetThirdPartySetting
File
- src/
YamlFormThirdPartySettingsManager.php, line 168
Class
- YamlFormThirdPartySettingsManager
- Form third party settings manager.
Namespace
Drupal\yamlformCode
public function unsetThirdPartySetting($module, $key) {
$this->config
->clear("third_party_settings.{$module}.{$key}");
// If the third party is no longer storing any information, completely
// remove the array holding the settings for this module.
if (!$this->config
->get("third_party_settings.{$module}")) {
$this->config
->clear("third_party_settings.{$module}");
}
return $this;
}