protected function RestIncidentStorage::getIncidentsFromStorage in Radioactivity 8.3
Same name and namespace in other branches
- 4.0.x src/RestIncidentStorage.php \Drupal\radioactivity\RestIncidentStorage::getIncidentsFromStorage()
Returns all incidents from the storage.
Return value
array The incidents.
1 call to RestIncidentStorage::getIncidentsFromStorage()
- RestIncidentStorage::getIncidents in src/
RestIncidentStorage.php - Gets all incidents from the storage.
File
- src/
RestIncidentStorage.php, line 115
Class
- RestIncidentStorage
- Defines a REST incident storage.
Namespace
Drupal\radioactivityCode
protected function getIncidentsFromStorage() {
return Json::decode(file_get_contents("{$this->getEndpoint()}?get"));
}