You are here

final protected function XmlEncoder::appendDocumentFragment 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::appendDocumentFragment()

Parameters

\DOMNode $node:

\DOMDocumentFragment $fragment:

Return value

bool

File

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

Class

XmlEncoder
Encodes XML data.

Namespace

Symfony\Component\Serializer\Encoder

Code

protected final function appendDocumentFragment(\DOMNode $node, $fragment) {
  if ($fragment instanceof \DOMDocumentFragment) {
    $node
      ->appendChild($fragment);
    return true;
  }
  return false;
}