public function XmlEncoder::getBaseEncoder in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/serialization/src/Encoder/XmlEncoder.php \Drupal\serialization\Encoder\XmlEncoder::getBaseEncoder()
Gets the base encoder instance.
Return value
\Symfony\Component\Serializer\Encoder\XmlEncoder The base encoder.
File
- core/
modules/ serialization/ src/ Encoder/ XmlEncoder.php, line 42 - Contains \Drupal\serialization\Encoder\XmlEncoder.
Class
- XmlEncoder
- Adds XML support for serializer.
Namespace
Drupal\serialization\EncoderCode
public function getBaseEncoder() {
if (!isset($this->baseEncoder)) {
$this->baseEncoder = new BaseXmlEncoder();
}
return $this->baseEncoder;
}