public function RendererBase::idFromBlock in Forena Reports 8
Simple function to get id from node.
Parameters
string $block:
Return value
string
1 call to RendererBase::idFromBlock()
- RendererBase::blockDiv in src/
FrxPlugin/ Renderer/ RendererBase.php - Generate generic div tag.
File
- src/
FrxPlugin/ Renderer/ RendererBase.php, line 812 - FrxRenderer.php Base class for FrxAPI custom Renderer @author davidmetzler
Class
- RendererBase
- Crosstab Renderer
Namespace
Drupal\forena\FrxPlugin\RendererCode
public function idFromBlock($block) {
$parts = explode('/', $block);
$id = str_replace('.', '_', array_pop($parts));
return $id;
}