public function LockrDrupal7SecretInfo::getSecretInfo in Lockr 7.3
Gets secret info for a secret by name.
Parameters
string $name:
Return value
array
Overrides SecretInfoInterface::getSecretInfo
File
- ./
lockr.secret_info.inc, line 16
Class
Code
public function getSecretInfo($name) {
if (isset($this->data[$name])) {
return $this->data[$name];
}
elseif ($key = key_get_key($name)) {
if (isset($key['key_provider_settings']['encoded'])) {
return [
'wrapping_key' => $key['key_provider_settings']['encoded'],
];
}
}
return [];
}