public function ReportEditor::templateConfigForm in Forena Reports 8
Same name and namespace in other branches
- 7.5 src/Editor/ReportEditor.php \Drupal\forena\Editor\ReportEditor::templateConfigForm()
Generate the configuration form for the template for a class.
Parameters
string $class: Class implementing template obejct.
array $config: Configuration of the template.
Return value
array Form elements representing configuration.
File
- src/
Editor/ ReportEditor.php, line 1122 - ReportEditor.inc Wrapper XML class for working with DOM object. It provides helper Enter description here ... @author metzlerd
Class
Namespace
Drupal\forena\EditorCode
public function templateConfigForm($class, $config) {
$form = array();
$c = FrxAPI::Template($class);
if ($c && method_exists($c, 'configForm')) {
$form = $c
->configForm($config);
}
return $form;
}