You are here

public function RestIncidentStorage::addIncident in Radioactivity 4.0.x

Same name and namespace in other branches
  1. 8.3 src/RestIncidentStorage.php \Drupal\radioactivity\RestIncidentStorage::addIncident()

Adds an incident to the storage.

Parameters

\Drupal\radioactivity\IncidentInterface $incident: The incident object.

Overrides IncidentStorageInterface::addIncident

File

src/RestIncidentStorage.php, line 22

Class

RestIncidentStorage
Defines a REST incident storage.

Namespace

Drupal\radioactivity

Code

public function addIncident(IncidentInterface $incident) {
  throw new \Exception("The Radioactivity rest endpoint expects incidents to be added somewhere else.");
}