You are here

public function WSDecoderXML::accepts in Web Service Data 8

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

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

Overrides WSDecoderBase::accepts

File

src/Plugin/WSDecoder/WSDecoderXML.php, line 48

Class

WSDecoderXML
XML Decoder.

Namespace

Drupal\wsdata\Plugin\WSDecoder

Code

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