public function Storage::getAll in Express 8
Returns all stored key/value pairs in the collection.
Return value
array An associative array containing all stored items in the collection.
Overrides MemoryStorage::getAll
1 call to Storage::getAll()
- Storage::save in themes/
contrib/ bootstrap/ src/ Utility/ Storage.php - Saves the data back to the database, if necessary, on shutdown.
File
- themes/
contrib/ bootstrap/ src/ Utility/ Storage.php, line 142 - Contains \Drupal\bootstrap\Utility\Storage.
Class
- Storage
- Theme Storage.
Namespace
Drupal\bootstrap\UtilityCode
public function getAll($arrays = TRUE) {
$data = $this->data;
if ($arrays) {
foreach ($data as $key => $value) {
if ($value instanceof StorageItem) {
$data[$key] = $value
->getAll();
}
}
}
return $data;
}