You are here

public function YamlFormThirdPartySettingsManager::getThirdPartySetting in YAML Form 8

Gets the value of a third-party setting.

Parameters

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

string $key: The setting name.

mixed $default: The default value

Return value

mixed The value.

Overrides ThirdPartySettingsInterface::getThirdPartySetting

File

src/YamlFormThirdPartySettingsManager.php, line 153

Class

YamlFormThirdPartySettingsManager
Form third party settings manager.

Namespace

Drupal\yamlform

Code

public function getThirdPartySetting($module, $key, $default = NULL) {
  $value = $this->config
    ->get("third_party_settings.{$module}.{$key}");
  return isset($value) ? $value : $default;
}