You are here

public function CheckSettings::set in Security Review 8

Sets a check-specific setting value identified by $key.

Parameters

string $key: The key.

mixed $value: The new value.

Return value

CheckSettingsInterface Returns itself.

Overrides CheckSettingsInterface::set

1 call to CheckSettings::set()
TrustedHostSettings::submitForm in src/CheckSettings/TrustedHostSettings.php
Form submission handler.

File

src/CheckSettings.php, line 54

Class

CheckSettings
Defines the default implementation of CheckSettingsInterface.

Namespace

Drupal\security_review

Code

public function set($key, $value) {
  $this->config
    ->set('settings.' . $key, $value);
  $this->config
    ->save();
  return $this;
}