public function SettingsForm::buildForm in Lingotek Translation 3.7.x
Same name and namespace in other branches
- 4.0.x tests/modules/lingotek_test_config_object/src/Form/SettingsForm.php \Drupal\lingotek_test_config_object\Form\SettingsForm::buildForm()
- 3.3.x tests/modules/lingotek_test_config_object/src/Form/SettingsForm.php \Drupal\lingotek_test_config_object\Form\SettingsForm::buildForm()
- 3.4.x tests/modules/lingotek_test_config_object/src/Form/SettingsForm.php \Drupal\lingotek_test_config_object\Form\SettingsForm::buildForm()
- 3.5.x tests/modules/lingotek_test_config_object/src/Form/SettingsForm.php \Drupal\lingotek_test_config_object\Form\SettingsForm::buildForm()
- 3.6.x tests/modules/lingotek_test_config_object/src/Form/SettingsForm.php \Drupal\lingotek_test_config_object\Form\SettingsForm::buildForm()
- 3.8.x tests/modules/lingotek_test_config_object/src/Form/SettingsForm.php \Drupal\lingotek_test_config_object\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
- tests/
modules/ lingotek_test_config_object/ src/ Form/ SettingsForm.php, line 30
Class
- SettingsForm
- Configure Lingotek Translation Test Config Object Helper settings for this site.
Namespace
Drupal\lingotek_test_config_object\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$form['property_1'] = [
'#type' => 'textfield',
'#title' => $this
->t('Property 1'),
'#default_value' => $this
->config('lingotek_test_config_object.settings')
->get('property_1'),
];
$form['property_2'] = [
'#type' => 'textfield',
'#title' => $this
->t('Property 2'),
'#default_value' => $this
->config('lingotek_test_config_object.settings')
->get('property_2'),
];
$form['property_3'] = [
'#type' => 'textfield',
'#title' => $this
->t('Property 3'),
'#default_value' => $this
->config('lingotek_test_config_object.settings')
->get('property_3'),
];
$form['property_4'] = [
'#type' => 'textfield',
'#title' => $this
->t('Property 4'),
'#default_value' => $this
->config('lingotek_test_config_object.settings')
->get('property_4'),
];
$form['property_5'] = [
'#type' => 'textfield',
'#title' => $this
->t('Property 5'),
'#default_value' => $this
->config('lingotek_test_config_object.settings')
->get('property_5'),
];
$form['property_6'] = [
'#type' => 'textfield',
'#title' => $this
->t('Property 6'),
'#default_value' => $this
->config('lingotek_test_config_object.settings')
->get('property_6'),
];
return parent::buildForm($form, $form_state);
}