private function GConfigForm::buildLine in Jammer 1.0.x
1 call to GConfigForm::buildLine()
- GConfigForm::submitForm in src/
Form/ GConfigForm.php - Form submission handler.
File
- src/
Form/ GConfigForm.php, line 137
Class
Namespace
Drupal\jammer\FormCode
private function buildLine($form_state) {
$result = [];
$result['form'] = $form_state
->getValue('target_form_id');
$result['elements'] = $this
->createArray($form_state
->getValue('element_id'));
$result['remove'] = $form_state
->getValue('remove_disable');
$result['creation'] = $form_state
->getValue('always_creation');
$result['roles'] = $form_state
->getValue('roles');
// still an array
$result['invert'] = $form_state
->getValue('invert_roles');
$result['priority'] = $form_state
->getValue('priority');
$result['group'] = $form_state
->getValue('group');
$result['comment'] = $form_state
->getValue('comment');
return $result;
}