You are here

public function RendererBase::idFromBlock in Forena Reports 7.5

Simple function to get id from node.

Parameters

unknown $block:

Return value

mixed

3 calls to RendererBase::idFromBlock()
FrxCrosstab::generate in src/Renderer/FrxCrosstab.php
Generate the template from the configuration.
FrxTable::generate in src/Renderer/FrxTable.php
Generate the template from the configuration.
RendererBase::blockDiv in src/Renderer/RendererBase.php
Generate generic div tag.

File

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

Class

RendererBase

Namespace

Drupal\forena\Renderer

Code

public function idFromBlock($block) {
  $parts = explode('/', $block);
  $id = str_replace('.', '_', array_pop($parts));
  return $id;
}