function TestFileTransferWithSettingsForm::getSettingsForm
Same name in other branches
- 9 core/modules/update/tests/modules/update_test/src/TestFileTransferWithSettingsForm.php \Drupal\update_test\TestFileTransferWithSettingsForm::getSettingsForm()
- 8.9.x core/modules/update/tests/modules/update_test/src/TestFileTransferWithSettingsForm.php \Drupal\update_test\TestFileTransferWithSettingsForm::getSettingsForm()
- 11.x 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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.