public function LockrKeyProvider::setKeyValue in Lockr 4.x
Same name and namespace in other branches
- 8.4 src/Plugin/KeyProvider/LockrKeyProvider.php \Drupal\lockr\Plugin\KeyProvider\LockrKeyProvider::setKeyValue()
- 8.2 src/Plugin/KeyProvider/LockrKeyProvider.php \Drupal\lockr\Plugin\KeyProvider\LockrKeyProvider::setKeyValue()
- 8.3 src/Plugin/KeyProvider/LockrKeyProvider.php \Drupal\lockr\Plugin\KeyProvider\LockrKeyProvider::setKeyValue()
1 call to LockrKeyProvider::setKeyValue()
- LockrKeyProvider::generateKey in src/
Plugin/ KeyProvider/ LockrKeyProvider.php - Creates a new key value, returning it.
File
- src/
Plugin/ KeyProvider/ LockrKeyProvider.php, line 223 - Contains Drupal\lockr\Plugin\KeyProvider\LockrKeyProvider.
Class
- LockrKeyProvider
- Adds a key provider that allows a key to be stored in Lockr.
Namespace
Drupal\lockr\Plugin\KeyProviderCode
public function setKeyValue(KeyInterface $key, $key_value) {
$this->lockr
->createSecretValue($this
->getLockrSecretName($key
->id()), $key_value, $key
->label(), $this->configFactory
->get('lockr.settings')
->get('region'));
return TRUE;
}