Same name and namespace in other branches
- 8.9.x core/lib/Drupal.php \Drupal::keyValueExpirable()
- 9 core/lib/Drupal.php \Drupal::keyValueExpirable()
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.
7 calls to Drupal::keyValueExpirable()
- DrupalTest::testKeyValueExpirable in core/
tests/ Drupal/ Tests/ Core/ DrupalTest.php - Tests the keyValueExpirable() method.
- phpass_form_system_modules_uninstall_confirm_form_alter in core/
modules/ phpass/ phpass.module - Implements hook_form_FORM_ID_alter() for system_modules_uninstall_confirm_form.
- UpdateSemverCoreTest::testBrokenThenFixedUpdates in core/
modules/ update/ tests/ src/ Functional/ UpdateSemverCoreTest.php - Checks that Drupal recovers after problems connecting to update server.
- update_calculate_project_data in core/
modules/ update/ update.compare.inc - Calculates the current update status of all projects on the site.
- update_get_available in core/
modules/ update/ update.module - Tries to get update information and refreshes it when necessary.
File
- core/
lib/ Drupal.php, line 380
Class
- Drupal
- Static Service Container wrapper.
Code
public static function keyValueExpirable($collection) {
return static::getContainer()
->get('keyvalue.expirable')
->get($collection);
}