public function LingotekSettingsAccountForm::buildForm in Lingotek Translation 3.4.x
Same name and namespace in other branches
- 8 src/Form/LingotekSettingsAccountForm.php \Drupal\lingotek\Form\LingotekSettingsAccountForm::buildForm()
- 8.2 src/Form/LingotekSettingsAccountForm.php \Drupal\lingotek\Form\LingotekSettingsAccountForm::buildForm()
- 4.0.x src/Form/LingotekSettingsAccountForm.php \Drupal\lingotek\Form\LingotekSettingsAccountForm::buildForm()
- 3.0.x src/Form/LingotekSettingsAccountForm.php \Drupal\lingotek\Form\LingotekSettingsAccountForm::buildForm()
- 3.1.x src/Form/LingotekSettingsAccountForm.php \Drupal\lingotek\Form\LingotekSettingsAccountForm::buildForm()
- 3.2.x src/Form/LingotekSettingsAccountForm.php \Drupal\lingotek\Form\LingotekSettingsAccountForm::buildForm()
- 3.3.x src/Form/LingotekSettingsAccountForm.php \Drupal\lingotek\Form\LingotekSettingsAccountForm::buildForm()
- 3.5.x src/Form/LingotekSettingsAccountForm.php \Drupal\lingotek\Form\LingotekSettingsAccountForm::buildForm()
- 3.6.x src/Form/LingotekSettingsAccountForm.php \Drupal\lingotek\Form\LingotekSettingsAccountForm::buildForm()
- 3.7.x src/Form/LingotekSettingsAccountForm.php \Drupal\lingotek\Form\LingotekSettingsAccountForm::buildForm()
- 3.8.x src/Form/LingotekSettingsAccountForm.php \Drupal\lingotek\Form\LingotekSettingsAccountForm::buildForm()
Overrides ConfigFormBase::buildForm
File
- src/
Form/ LingotekSettingsAccountForm.php, line 22
Class
- LingotekSettingsAccountForm
- Configure Lingotek
Namespace
Drupal\lingotek\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$form = parent::buildForm($form, $form_state);
$form['account']['connected'] = [];
$form['account']['login_id'] = [
'#type' => 'textfield',
'#title' => t('Login'),
'#description' => t('The login used to connect with the Lingotek service.'),
'#value' => $this
->config('lingotek.settings')
->get('account.login_id'),
'#disabled' => TRUE,
];
$form['account']['access_token'] = [
'#type' => 'textfield',
'#title' => t('Access Token'),
'#description' => t('The token currently useed when communicating with the Lingotek service.'),
'#value' => $this
->config('lingotek.settings')
->get('account.access_token'),
'#disabled' => TRUE,
];
// Provide new button to continue
$form['actions']['submit']['#value'] = t('Next');
return $form;
}