public function Key::getKeyValue in Key 8
Gets the value of the key.
Return value
string The value of the key.
Overrides KeyInterface::getKeyValue
1 call to Key::getKeyValue()
- Key::getKeyValues in src/
Entity/ Key.php - Gets the values of the key.
File
- src/
Entity/ Key.php, line 259
Class
- Key
- Defines the Key entity.
Namespace
Drupal\key\EntityCode
public function getKeyValue($reset = FALSE) {
$key_id = $this
->id();
$key_values =& drupal_static(__FUNCTION__);
// If the key value has not already been retrieved during this page
// request or if the static variable storage needs to be reset for
// this key, retrieve the value using the key provider.
if (!isset($key_values[$key_id]) || $reset) {
$key_values[$key_id] = $this
->getKeyProvider()
->getKeyValue($this);
}
return $key_values[$key_id];
}