public function XmlEncoder::supportsDecoding

Checks whether the serializer can decode from given format

Parameters

string $format format name:

Return value

Boolean

Overrides DecoderInterface::supportsDecoding

File

drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/Encoder/XmlEncoder.php, line 112

Class

XmlEncoder
Encodes XML data

Namespace

Symfony\Component\Serializer\Encoder

Code

public function supportsDecoding($format) {
  return 'xml' === $format;
}