You are here

protected function RestIncidentStorage::clearIncidentStorage in Radioactivity 8.3

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

Deletes all incidents from the storage.

1 call to RestIncidentStorage::clearIncidentStorage()
RestIncidentStorage::clearIncidents in src/RestIncidentStorage.php
Clears the incident storage.

File

src/RestIncidentStorage.php, line 122

Class

RestIncidentStorage
Defines a REST incident storage.

Namespace

Drupal\radioactivity

Code

protected function clearIncidentStorage() {
  file_get_contents("{$this->getEndpoint()}?clear");
}