You are here

public function WSExampleBlockDecoder::accepts in Web Service Data 2.0.x

Same name and namespace in other branches
  1. 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\WSDecoder

Code

public function accepts() {
  return [
    'text/json',
  ];
}