public function BlockEditor::generate in Forena Reports 7.5
Same name and namespace in other branches
- 8 src/Editor/BlockEditor.php \Drupal\forena\Editor\BlockEditor::generate()
Use the classes generate method to generate the block.
Parameters
$builder:
$config:
Return value
multitype:
File
- src/
Editor/ BlockEditor.php, line 290
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;
}