You are here

public function DefaultIncidentStorage::getIncidents in Radioactivity 8.3

Same name and namespace in other branches
  1. 4.0.x 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\radioactivity

Code

public function getIncidents() {
  return $this->state
    ->get(self::STORAGE_KEY, []);
}