public function SettingsForm::buildForm in Confirm popup 8
Form constructor.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array The form structure.
Overrides ConfigFormBase::buildForm
File
- src/
Form/ SettingsForm.php, line 29
Class
Namespace
Drupal\js_confirm_pop_up\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$config = $this
->config('js_confirm_pop_up.settings');
$form['js_confirm_pop_up_actual_form_id'] = [
'#type' => 'textarea',
'#title' => $this
->t('Actual drupal form id:'),
'#default_value' => $config
->get('js_confirm_pop_up_id'),
'#description' => t('Enter comma(,) separated form ids of drupal form(Machine name) .ie node_page_form'),
];
return parent::buildForm($form, $form_state);
}