Drupal::keyValueExpirable

public static Drupal::keyValueExpirable($collection)

Returns an expirable key value store collection.

Parameters

string $collection: The name of the collection holding key and value pairs.

Return value

\Drupal\Core\KeyValueStore\KeyValueStoreExpirableInterface An expirable key value store collection.

File

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

Class

Drupal
Static Service Container wrapper.

Code

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

Please login to continue.