eZ\Publish\Core\REST\Common\Output\Generator\Xml::startValueElement PHP Method

startValueElement() public method

Start value element.
public startValueElement ( string $name, string $value, array $attributes = [] )
$name string
$value string
$attributes array
    public function startValueElement($name, $value, $attributes = array())
    {
        $this->checkStartValueElement($name);
        $this->xmlWriter->startElement($name);
        foreach ($attributes as $attributeName => $attributeValue) {
            $this->xmlWriter->startAttribute($attributeName);
            $this->xmlWriter->text($attributeValue);
            $this->xmlWriter->endAttribute();
        }
        $this->xmlWriter->text($value);
    }