You are here

private function XmlEncoder::resolveXmlRootName 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::resolveXmlRootName()

Get real XML root node name, taking serializer options into account.

Parameters

array $context:

Return value

string

1 call to XmlEncoder::resolveXmlRootName()
XmlEncoder::encode in vendor/symfony/serializer/Encoder/XmlEncoder.php
Encodes data into the given format.

File

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

Class

XmlEncoder
Encodes XML data.

Namespace

Symfony\Component\Serializer\Encoder

Code

private function resolveXmlRootName(array $context = array()) {
  return isset($context['xml_root_node_name']) ? $context['xml_root_node_name'] : $this->rootNodeName;
}