public function WSDecoderJSON::accepts in Web Service Data 8
Same name and namespace in other branches
- 2.0.x src/Plugin/WSDecoder/WSDecoderJSON.php \Drupal\wsdata\Plugin\WSDecoder\WSDecoderJSON::accepts()
Returns an array of the content type of the data this processor accepts.
Overrides WSDecoderBase::accepts
File
- src/
Plugin/ WSDecoder/ WSDecoderJSON.php, line 38
Class
- WSDecoderJSON
- JSON Decoder.
Namespace
Drupal\wsdata\Plugin\WSDecoderCode
public function accepts() {
return [
'text/json',
];
}