You are here

public function WSDecoderBase::accepts in Web Service Data 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/WSDecoderBase.php \Drupal\wsdata\Plugin\WSDecoderBase::accepts()

Returns an array of the content type of the data this processor accepts.

Overrides WSDecoderInterface::accepts

3 methods override WSDecoderBase::accepts()
WSDecoderJSON::accepts in src/Plugin/WSDecoder/WSDecoderJSON.php
Returns an array of the content type of the data this processor accepts.
WSDecoderXML::accepts in src/Plugin/WSDecoder/WSDecoderXML.php
Returns an array of the content type of the data this processor accepts.
WSExampleBlockDecoder::accepts in modules/wsdata_example/src/Plugin/WSDecoder/WSExampleBlockDecoder.php
Returns an array of the content type of the data this processor accepts.

File

src/Plugin/WSDecoderBase.php, line 35

Class

WSDecoderBase
Base class for Wsdecoder plugin plugins.

Namespace

Drupal\wsdata\Plugin

Code

public function accepts() {
  return [
    'application/octet-stream',
  ];
}