You are here

public function DefaultIncidentStorage::clearIncidents in Radioactivity 8.3

Same name and namespace in other branches
  1. 4.0.x src/DefaultIncidentStorage.php \Drupal\radioactivity\DefaultIncidentStorage::clearIncidents()

Clears the incident storage.

Overrides IncidentStorageInterface::clearIncidents

File

src/DefaultIncidentStorage.php, line 67

Class

DefaultIncidentStorage
Defines a default incident storage.

Namespace

Drupal\radioactivity

Code

public function clearIncidents() {
  $this->state
    ->set(self::STORAGE_KEY, []);
}