public function RestIncidentStorage::addIncident in Radioactivity 8.3
Same name and namespace in other branches
- 4.0.x 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\radioactivityCode
public function addIncident(IncidentInterface $incident) {
throw new \Exception("The Radioactivity rest endpoint expects incidents to be added somewhere else.");
}