You are here

public function XMLDocument::render in Forena Reports 7.5

Overrides DocumentTypeBase::render

File

src/DocumentFormats/XMLDocument.php, line 43
HtmlDocument Straight XML document with no wrapping theme. @author davidmetzler

Class

XMLDocument

Namespace

Drupal\forena\DocumentFormats

Code

public function render($r, $format, $options = array()) {
  $ending_tag = $this->root_tag;
  if ($ending_tag) {
    $r->html .= "</{$ending_tag}>";
  }
  return $r->html;
}