Drupal::keyValue

public static Drupal::keyValue($collection)

Returns a key/value storage collection.

Parameters

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

Return value

\Drupal\Core\KeyValueStore\KeyValueStoreInterface

File

core/lib/Drupal.php, line 393
Contains \Drupal.

Class

Drupal
Static Service Container wrapper.

Code

public static function keyValue($collection) {
  return static::getContainer()->get('keyvalue')->get($collection);
}
doc_Drupal
2016-10-29 09:02:46
Comments
Leave a Comment

Please login to continue.