Same name and namespace in other branches
  1. 8.9.x core/modules/update/tests/modules/update_test/src/TestFileTransferWithSettingsForm.php \Drupal\update_test\TestFileTransferWithSettingsForm::getSettingsForm()
  2. 9 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_test

Code

public function getSettingsForm() {
  $form = [];
  $form['update_test_username'] = [
    '#type' => 'textfield',
    '#title' => t('Update Test Username'),
  ];
  return $form;
}