public static function 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); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal.php/function/Drupal::keyValue/8.1.x