You are here

public function FrxInclude::generate in Forena Reports 8

Implement template generator.

Overrides TemplateInterface::generate

See also

FrxRenderer::generate()

File

src/FrxPlugin/Template/FrxInclude.php, line 20
FrxInclude Include a reference to another report as an asset. @author davidmetzler

Class

FrxInclude

Namespace

Drupal\forena\Template

Code

public function generate() {
  $src = $this
    ->extract('src', $key);
  $div = $this
    ->blockDiv($config);
  $frx = array(
    'src' => $src,
    'renderer' => 'FrxInclude',
  );
  $this
    ->addNode($div, 4, 'div', NULL, $config, $frx);
}