public function BackgroundProcessAssSettingsForm::buildForm in Background Process 8
Implements to Build Form.
Overrides ConfigFormBase::buildForm
File
- background_process_ass/
src/ Form/ BackgroundProcessAssSettingsForm.php, line 49
Class
- BackgroundProcessAssSettingsForm
- Implements BackgroundProcessAssSettingsForm Class.
Namespace
Drupal\background_process_ass\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$form = [];
$form['background_process_ass_max_age'] = [
'#type' => 'textfield',
'#title' => $this
->t('Max age'),
'#description' => $this
->t('Time in seconds to wait before considering a process dead.'),
'#default_value' => \Drupal::config('background_process_ass.settings')
->get('background_process_ass_max_age'),
];
return parent::buildForm($form, $form_state);
}