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 core/modules/serialization/src/Encoder/XmlEncoder.php \Drupal\serialization\Encoder\XmlEncoder::supportsEncoding()
Checks whether the serializer can encode to given format.
Parameters
string $format format name:
Return value
bool
Overrides EncoderInterface::supportsEncoding
File
- core/
modules/ serialization/ src/ Encoder/ XmlEncoder.php, line 69 - Contains \Drupal\serialization\Encoder\XmlEncoder.
Class
- XmlEncoder
- Adds XML support for serializer.
Namespace
Drupal\serialization\EncoderCode
public function supportsEncoding($format) {
return in_array($format, static::$format);
}