public function FrxSection::configForm in Forena Reports 7.5
Generate configuration.
Overrides RendererBase::configForm
File
- src/
Renderer/ FrxSection.php, line 37
Class
Namespace
Drupal\forena\RendererCode
public function configForm($config) {
$form['sections'] = array(
'#theme' => 'forena_element_draggable',
'#draggable_id' => 'FrxContainer-sections',
);
if (isset($config['sections'])) {
foreach ($config['sections'] as $id => $section) {
$ctl = array();
$ctl['id'] = array(
'#type' => 'item',
'#markup' => $id,
'#title' => 'id',
);
$ctl['markup'] = array(
'#type' => 'value',
'#value' => $section['markup'],
);
$ctl['class_label'] = array(
'#type' => 'item',
'#markup' => @$section['class'],
'#title' => t('Type'),
);
$ctl['class'] = array(
'#type' => 'value',
'#value' => @$section['class'],
);
// $ctl['display'] = array('#type' => 'item', '#title' => 'html', '#markup' =>$section['markup']);
$form['sections'][$id] = $ctl;
}
}
return $form;
}