You are here

public function FrxMergeDocument::generate in Forena Reports 7.5

Generate the template from the configuration.

Parameters

string $data_block:

SimpleXMLElement $xml:

array $config:

Overrides RendererBase::generate

File

src/Renderer/FrxMergeDocument.php, line 35

Class

FrxMergeDocument

Namespace

Drupal\forena\Renderer

Code

public function generate($xml, &$config) {
  $config['class'] = get_class($this);
  $config['foreach'] = '*';
  $div = $this
    ->blockDiv($config);
  $this
    ->removeChildren($div);
  $this
    ->addFragment($div, $config['content']['value']);
}