public function XmlEncoder::supportsEncoding

Checks whether the serializer can encode to given format

Parameters

string $format format name:

Return value

Boolean

Overrides EncoderInterface::supportsEncoding

File

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

Class

XmlEncoder
Encodes XML data

Namespace

Symfony\Component\Serializer\Encoder

Code

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