function StorageBase::getAllKeys
Same name and namespace in other branches
- main core/lib/Drupal/Core/KeyValueStore/StorageBase.php \Drupal\Core\KeyValueStore\StorageBase::getAllKeys()
Retrieves all keys in the collection.
Return value
iterable<string> A list of all keys present in the collection.
Overrides KeyValueStoreInterface::getAllKeys
1 method overrides StorageBase::getAllKeys()
- DatabaseStorage::getAllKeys in core/
lib/ Drupal/ Core/ KeyValueStore/ DatabaseStorage.php - Retrieves all keys in the collection.
File
-
core/
lib/ Drupal/ Core/ KeyValueStore/ StorageBase.php, line 42
Class
- StorageBase
- Provides a base class for key/value storage implementations.
Namespace
Drupal\Core\KeyValueStoreCode
public function getAllKeys() : iterable {
return array_keys($this->getAll());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.