You are here

public function SVGDocument::header in Forena Reports 7.5

Overrides DocumentTypeBase::header

File

src/DocumentFormats/SVGDocument.php, line 16
SVGDocument Embedded SVG Graph as it's own document. @author davidmetzler

Class

SVGDocument

Namespace

Drupal\forena\DocumentFormats

Code

public function header($r, $print = TRUE) {
  $r->html = '';
  if ($print && $this->content_type) {
    header('Content-Type: ' . $this->content_type);
  }
}