You are here

public function XmlEncoder::setRootNodeName in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/serializer/Encoder/XmlEncoder.php \Symfony\Component\Serializer\Encoder\XmlEncoder::setRootNodeName()

Sets the root node name.

Parameters

string $name root node name:

File

vendor/symfony/serializer/Encoder/XmlEncoder.php, line 157

Class

XmlEncoder
Encodes XML data.

Namespace

Symfony\Component\Serializer\Encoder

Code

public function setRootNodeName($name) {
  $this->rootNodeName = $name;
}