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