You are here

public function RestProcessor::error in Radioactivity 8.3

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

Returns a generic error message.

Return value

string Json formatted error status message.

File

src/RestProcessor.php, line 104

Class

RestProcessor
The worker class for the Radioactivity rest endpoint.

Namespace

Drupal\radioactivity

Code

public function error() {
  return $this
    ->restStatus('error', 'Nothing to do.');
}