public function RestProcessor::clearData in Radioactivity 4.0.x
Same name and namespace in other branches
- 8.3 src/RestProcessor.php \Drupal\radioactivity\RestProcessor::clearData()
Clears the rest data storage.
Return value
string Json formatted result status message.
File
- src/
RestProcessor.php, line 70
Class
- RestProcessor
- The worker class for the Radioactivity rest endpoint.
Namespace
Drupal\radioactivityCode
public function clearData() {
if (file_exists($this->payloadFile)) {
unlink($this->payloadFile);
}
return $this
->restStatus('ok', 'Cleared.');
}