You are here

public static function ConfigKeyProvider::obscureKeyValue in Key 8

Obscures a key value.

Parameters

string $key_value: The key value to obscure.

array $options: Options to use when obscuring the value.

Return value

string The obscured key value.

Overrides KeyProviderBase::obscureKeyValue

File

src/Plugin/KeyProvider/ConfigKeyProvider.php, line 111

Class

ConfigKeyProvider
Adds a key provider that allows a key to be stored in configuration.

Namespace

Drupal\key\Plugin\KeyProvider

Code

public static function obscureKeyValue($key_value, array $options = []) {

  // Key values are not obscured when this provider is used.
  return $key_value;
}