You are here

public function FrxInclude::generate in Forena Reports 7.5

Implement template generator.

Overrides RendererBase::generate

See also

FrxRenderer::generate()

File

src/Renderer/FrxInclude.php, line 82
FrxInclude Include a reference to another report as an asset. @author davidmetzler

Class

FrxInclude

Namespace

Drupal\forena\Renderer

Code

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