You are here

public function SVG::header in Forena Reports 8

Default implementation to put in content type based headers.

Overrides DocumentBase::header

File

src/FrxPlugin/Document/SVG.php, line 27
SVG Embedded SVG Graph as it's own document. @author davidmetzler

Class

SVG
Provides SVG file exports

Namespace

Drupal\forena\FrxPlugin\Document

Code

public function header() {
  $this->write_buffer = '';
  $this->headers = [];
  $this->headers['Content-Type'] = $this->content_type;
  $this->headers['Cache-Control'] = 'must-revalidate';
}