public function XmlEncoder::supportsEncoding in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/serializer/Encoder/XmlEncoder.php \Symfony\Component\Serializer\Encoder\XmlEncoder::supportsEncoding()
- 8 core/modules/serialization/src/Encoder/XmlEncoder.php \Drupal\serialization\Encoder\XmlEncoder::supportsEncoding()
Same name and namespace in other branches
- 8.0 vendor/symfony/serializer/Encoder/XmlEncoder.php \Symfony\Component\Serializer\Encoder\XmlEncoder::supportsEncoding()
Checks whether the serializer can encode to given format.
Parameters
string $format format name:
Return value
bool
Overrides EncoderInterface::supportsEncoding
File
- vendor/
symfony/ serializer/ Encoder/ XmlEncoder.php, line 139
Class
- XmlEncoder
- Encodes XML data.
Namespace
Symfony\Component\Serializer\EncoderCode
public function supportsEncoding($format) {
return 'xml' === $format;
}