public function MockFileTransfer::getSettingsForm

Same name in this branch

Returns a settings form with a text field to input a username.

File

drupal/core/modules/update/tests/modules/update_test/lib/Drupal/update_test/MockFileTransfer.php, line 28
Definition of Drupal\update_test\MockFileTransfer.

Class

MockFileTransfer
Mocks a FileTransfer object to test the settings form functionality.

Namespace

Drupal\update_test

Code

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