public function MockFileTransfer::getSettingsForm in Zircon Profile 8
Same name in this branch
- 8 core/modules/system/tests/modules/system_test/src/MockFileTransfer.php \Drupal\system_test\MockFileTransfer::getSettingsForm()
- 8 core/modules/update/tests/modules/update_test/src/MockFileTransfer.php \Drupal\update_test\MockFileTransfer::getSettingsForm()
Same name and namespace in other branches
- 8.0 core/modules/update/tests/modules/update_test/src/MockFileTransfer.php \Drupal\update_test\MockFileTransfer::getSettingsForm()
Returns a settings form with a text field to input a username.
File
- core/
modules/ update/ tests/ modules/ update_test/ src/ MockFileTransfer.php, line 28 - Contains \Drupal\update_test\MockFileTransfer.
Class
- MockFileTransfer
- Mocks a FileTransfer object to test the settings form functionality.
Namespace
Drupal\update_testCode
public function getSettingsForm() {
$form = array();
$form['update_test_username'] = array(
'#type' => 'textfield',
'#title' => t('Update Test Username'),
);
return $form;
}