public function SettingsForm::buildForm in Single Language URL Prefix 2.0.x
Same name and namespace in other branches
- 8 src/Form/SettingsForm.php \Drupal\single_language_url_prefix\Form\SettingsForm::buildForm()
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 32
Class
- SettingsForm
- Class SettingsForm.
Namespace
Drupal\single_language_url_prefix\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$config = $this
->config('single_language_url_prefix.settings');
$form['excluded_paths'] = [
'#type' => 'textarea',
'#title' => $this
->t('Excluded Paths'),
'#default_value' => $config
->get('excluded_paths'),
];
return parent::buildForm($form, $form_state);
}