public function DefaultIncidentStorage::getIncidents in Radioactivity 4.0.x
Same name and namespace in other branches
- 8.3 src/DefaultIncidentStorage.php \Drupal\radioactivity\DefaultIncidentStorage::getIncidents()
Gets all incidents from the storage.
Return value
\Drupal\radioactivity\IncidentInterface[] Array of incident objects.
Overrides IncidentStorageInterface::getIncidents
File
- src/
DefaultIncidentStorage.php, line 41
Class
- DefaultIncidentStorage
- Defines a default incident storage.
Namespace
Drupal\radioactivityCode
public function getIncidents() {
return $this->state
->get(self::STORAGE_KEY, []);
}