public function FormsStepsSettingsForm::buildForm in Forms Steps 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/ FormsStepsSettingsForm.php, line 36
Class
- FormsStepsSettingsForm
- Class FormsStepsSettingsForm.
Namespace
Drupal\forms_steps\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$config = $this
->config($this->config);
$form['message'] = [
'#type' => 'textarea',
'#title' => $this
->t('Message'),
'#description' => $this
->t('Message description'),
'#defaut_value' => $config
->get('message'),
];
return parent::buildForm($form, $form_state);
}