public function BlockEditor::generate in Forena Reports 8
Same name and namespace in other branches
- 7.5 src/Editor/BlockEditor.php \Drupal\forena\Editor\BlockEditor::generate()
Use the classes generate method to generate the block.
Parameters
$builder:
$config:
Return value
array Template configuration
File
- src/
Editor/ BlockEditor.php, line 301
Class
Namespace
Drupal\forena\EditorCode
public function generate($builder, &$config) {
$this
->getBuilders();
$form = array();
if (isset($this->builders[$builder])) {
$b = $this->builders[$builder];
if (method_exists($b, 'generate')) {
$form = $b
->generate($config);
}
}
return $form;
}