You are here

public function Report::getRenderer in Forena Reports 8

1 call to Report::getRenderer()
Report::render in src/Report.php
Render the report

File

src/Report.php, line 105
Basic report provider. Controls the rendering of the report.

Class

Report

Namespace

Drupal\forena

Code

public function getRenderer($renderer = '') {
  if (!$renderer || !isset($this->renderers[$renderer])) {
    $renderer = 'RendererBase';
  }

  // Build array of controls.
  if (!isset($this->controls[$renderer])) {
    $class = $this->renderers[$renderer];
    $c = new $class($this);
    $this->controls[$renderer] = $c;
  }
  return $this->controls[$renderer];
}