You are here

public function SecretInfo::setSecretInfo in Lockr 8.3

Same name and namespace in other branches
  1. 8.4 src/SecretInfo.php \Drupal\lockr\SecretInfo::setSecretInfo()
  2. 4.x src/SecretInfo.php \Drupal\lockr\SecretInfo::setSecretInfo()

File

src/SecretInfo.php, line 66

Class

SecretInfo
SecretInfo implements secret info for Lockr secrets.

Namespace

Drupal\lockr

Code

public function setSecretInfo($name, array $info) {
  $config = $this->configFactory
    ->getEditable('lockr.secret_info');
  $config
    ->set($name, $info);
  $config
    ->save();
}