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); }
Please login to continue.