public function LocaleProjectStorage::getAll in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/locale/src/LocaleProjectStorage.php \Drupal\locale\LocaleProjectStorage::getAll()
Returns all the project records.
Return value
array An associative array of items successfully returned, indexed by key.
Overrides LocaleProjectStorageInterface::getAll
1 call to LocaleProjectStorage::getAll()
- LocaleProjectStorage::countProjects in core/
modules/ locale/ src/ LocaleProjectStorage.php - Returns the count of project records.
File
- core/
modules/ locale/ src/ LocaleProjectStorage.php, line 166 - Contains \Drupal\locale\LocaleProjectStorage.
Class
- LocaleProjectStorage
- Provides the locale project storage system using a key value store.
Namespace
Drupal\localeCode
public function getAll() {
if (!static::$all) {
$this->cache = $this->keyValueStore
->getAll();
static::$all = TRUE;
}
return $this->cache;
}