You are here

public function KeyProviderInterface::getKeyValue in Key 8

Returns the value of a key.

Parameters

\Drupal\key\KeyInterface $key: The key whose value will be retrieved.

Return value

string The key value.

4 methods override KeyProviderInterface::getKeyValue()
ConfigKeyProvider::getKeyValue in src/Plugin/KeyProvider/ConfigKeyProvider.php
Returns the value of a key.
EnvKeyProvider::getKeyValue in src/Plugin/KeyProvider/EnvKeyProvider.php
Returns the value of a key.
FileKeyProvider::getKeyValue in src/Plugin/KeyProvider/FileKeyProvider.php
Returns the value of a key.
State::getKeyValue in tests/modules/key_test/src/Plugin/KeyProvider/State.php
Returns the value of a key.

File

src/Plugin/KeyProviderInterface.php, line 22

Class

KeyProviderInterface
Provides an interface for Key Provider plugins.

Namespace

Drupal\key\Plugin

Code

public function getKeyValue(KeyInterface $key);