You are here

public function SettingsForm::buildForm in Single Language URL Prefix 8

Same name and namespace in other branches
  1. 2.0.x 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\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $config = $this
    ->config('single_language_url_prefix.settings');
  $form['excluded_paths'] = array(
    '#type' => 'textarea',
    '#title' => $this
      ->t('Excluded Paths'),
    '#default_value' => $config
      ->get('excluded_paths'),
  );
  return parent::buildForm($form, $form_state);
}