Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. XmlEncoder.php

function XmlEncoder::appendComment

1 call to XmlEncoder::appendComment()
XmlEncoder::buildXml in vendor/symfony/serializer/Encoder/XmlEncoder.php
Parse the data and convert it to DOMElements.

File

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

Class

XmlEncoder
@author Jordi Boggiano <j.boggiano@seld.be> @author John Wards <jwards@whiteoctober.co.uk> @author Fabian Vogler <fabian@equivalence.ch> @author Kévin Dunglas <dunglas@gmail.com> @author Dany Maillard…

Namespace

Symfony\Component\Serializer\Encoder

Code

protected final function appendComment(\DOMNode $node, string $data) : bool {
    $node->appendChild($node->ownerDocument
        ->createComment($data));
    return true;
}
RSS feed
Powered by Drupal