You are here

public function XmlEncoder::setBaseEncoder in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/serialization/src/Encoder/XmlEncoder.php \Drupal\serialization\Encoder\XmlEncoder::setBaseEncoder()

Sets the base encoder instance.

Parameters

\Symfony\Component\Serializer\Encoder\XmlEncoder $encoder:

File

core/modules/serialization/src/Encoder/XmlEncoder.php, line 55
Contains \Drupal\serialization\Encoder\XmlEncoder.

Class

XmlEncoder
Adds XML support for serializer.

Namespace

Drupal\serialization\Encoder

Code

public function setBaseEncoder($encoder) {
  $this->baseEncoder = $encoder;
}