You are here

public function RendererBase::replacedAttributes in Forena Reports 8

Gives the token replaced attributes of a node.

Return value

array Key value pair of attributes

2 calls to RendererBase::replacedAttributes()
FrxCrosstab::render in src/FrxPlugin/Renderer/FrxCrosstab.php
Render the crosstab
FrxParameterForm::render in src/FrxPlugin/Renderer/FrxParameterForm.php
Default Render action, which simply does normal forena rendering. You can use renderDomNode at any time to generate the default forena rendering methods.

File

src/FrxPlugin/Renderer/RendererBase.php, line 512
FrxRenderer.php Base class for FrxAPI custom Renderer @author davidmetzler

Class

RendererBase
Crosstab Renderer

Namespace

Drupal\forena\FrxPlugin\Renderer

Code

public function replacedAttributes() {
  $attributes = array();
  if (isset($this->frxAttributes)) {
    foreach ($this->frxAttributes as $key => $data) {
      $attributes[$key] = $this->report
        ->replace((string) $data, TRUE);
    }
  }
  if (isset($this->htmlAttributes)) {
    foreach ($this->htmlAttributes as $key => $data) {
      $attributes[$key] = $this->report
        ->replace((string) $data, TRUE);
    }
  }
  return $attributes;
}