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