You are here

public function WSDecoderJSON::accepts in Web Service Data 8

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

Code

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