function update_test_filetransfer_info

Same name in other branches
  1. 7.x modules/update/tests/update_test.module \update_test_filetransfer_info()
  2. 9 core/modules/update/tests/modules/update_test/update_test.module \update_test_filetransfer_info()
  3. 8.9.x core/modules/update/tests/modules/update_test/update_test.module \update_test_filetransfer_info()
  4. 10 core/modules/update/tests/modules/update_test/update_test.module \update_test_filetransfer_info()

Implements hook_filetransfer_info().

File

core/modules/update/tests/modules/update_test/update_test.module, line 63

Code

function update_test_filetransfer_info() {
    // Define a test file transfer method, to ensure that there will always be at
    // least one method available in the user interface (regardless of the
    // environment in which the update manager tests are run).
    return [
        'system_test' => [
            'title' => t('Update Test FileTransfer'),
            'class' => 'Drupal\\update_test\\TestFileTransferWithSettingsForm',
            'weight' => -20,
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.