public function SecretInfo::setSecretInfo in Lockr 8.3
Same name and namespace in other branches
- 8.4 src/SecretInfo.php \Drupal\lockr\SecretInfo::setSecretInfo()
- 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\lockrCode
public function setSecretInfo($name, array $info) {
$config = $this->configFactory
->getEditable('lockr.secret_info');
$config
->set($name, $info);
$config
->save();
}