public static function Drupal::keyValue

Returns a key/value storage collection.

Parameters

$collection: Name of the key/value collection to return.

Return value

\Drupal\Core\KeyValueStore\KeyValueStoreInterface

3 calls to Drupal::keyValue()
ModuleHandler::uninstall in drupal/core/lib/Drupal/Core/Extension/ModuleHandler.php
Uninstalls a given list of disabled modules.
UpdateModuleHandler::enable in drupal/core/lib/Drupal/Core/Extension/UpdateModuleHandler.php
Enables or installs a given list of modules.
update_prepare_d8_bootstrap in drupal/core/includes/update.inc
Performs extra steps required to bootstrap when using a Drupal 7 database.

File

drupal/core/lib/Drupal.php, line 259
Contains Drupal.

Class

Drupal
Static Service Container wrapper.

Code

public static function keyValue($collection) {
  return static::$container
    ->get('keyvalue')
    ->get($collection);
}