public function SettingsForm::buildForm in Localization client 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
- l10n_client_ui/
src/ Form/ SettingsForm.php, line 31
Class
- SettingsForm
- Settings form for the localization client user interface module.
Namespace
Drupal\l10n_client_ui\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$config = $this
->config('l10n_client_ui.settings');
$form['disabled_paths'] = array(
'#title' => t('Disable on-page translation on the following system paths'),
'#type' => 'textarea',
'#description' => t('One per line. Wildcard-enabled. Examples: system/ajax, admin*'),
'#default_value' => $config
->get('disabled_paths'),
);
return parent::buildForm($form, $form_state);
}