public function TestFileTransferWithSettingsForm::getSettingsForm in Drupal 9
Same name and namespace in other branches
- 8 core/modules/update/tests/modules/update_test/src/TestFileTransferWithSettingsForm.php \Drupal\update_test\TestFileTransferWithSettingsForm::getSettingsForm()
Returns a settings form with a text field to input a username.
Overrides FileTransfer::getSettingsForm
File
- core/modules/ update/ tests/ modules/ update_test/ src/ TestFileTransferWithSettingsForm.php, line 31 
Class
- TestFileTransferWithSettingsForm
- Provides an object to test the settings form functionality.
Namespace
Drupal\update_testCode
public function getSettingsForm() {
  $form = [];
  $form['update_test_username'] = [
    '#type' => 'textfield',
    '#title' => t('Update Test Username'),
  ];
  return $form;
}