function ConfigSimpleExampleSettingsForm::buildForm
Overrides ConfigFormBase::buildForm
File
-
modules/
config_simple_example/ src/ Form/ ConfigSimpleExampleSettingsForm.php, line 32
Class
- ConfigSimpleExampleSettingsForm
- Configure example settings for this site.
Namespace
Drupal\config_simple_example\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$config = $this->config('config_simple_example.settings');
$form['message'] = [
'#type' => 'textarea',
'#title' => $this->t('Message'),
'#default_value' => $config->get('message'),
];
return parent::buildForm($form, $form_state);
}