You are here

public function RendererBase::extract in Forena Reports 7.5

Extract a configuration var removing it from the array

Parameters

string $key attribute key for the data being extracted.:

array $config:

4 calls to RendererBase::extract()
FrxInclude::generate in src/Renderer/FrxInclude.php
Implement template generator.
FrxSVGGraph::generate in src/Renderer/FrxSVGGraph.php
Generate the template from the configuration.
FrxSVGGraph::prepareGraph in src/Renderer/FrxSVGGraph.php
RendererBase::blockDiv in src/Renderer/RendererBase.php
Generate generic div tag.

File

src/Renderer/RendererBase.php, line 737
FrxRenderer.php Base class for Frx custom Renderer @author davidmetzler

Class

RendererBase

Namespace

Drupal\forena\Renderer

Code

public function extract($key, &$config) {
  $value = '';
  if (isset($config[$key])) {
    $value = $config[$key];
    unset($config[$key]);
  }
  return $value;
}