public function XmlEncoder::setBaseEncoder in Drupal 10
Same name and namespace in other branches
- 8 core/modules/serialization/src/Encoder/XmlEncoder.php \Drupal\serialization\Encoder\XmlEncoder::setBaseEncoder()
- 9 core/modules/serialization/src/Encoder/XmlEncoder.php \Drupal\serialization\Encoder\XmlEncoder::setBaseEncoder()
Sets the base encoder instance.
Parameters
\Symfony\Component\Serializer\Encoder\XmlEncoder $encoder: The XML encoder.
File
- core/
modules/ serialization/ src/ Encoder/ XmlEncoder.php, line 60
Class
- XmlEncoder
- Adds XML support for serializer.
Namespace
Drupal\serialization\EncoderCode
public function setBaseEncoder($encoder) {
$this->baseEncoder = $encoder;
}