v1/vendor/chi-teck/drupal-code-generator/templates/hook/filetransfer_info.twig

12 lines
248 B
Twig

/**
* Implements hook_filetransfer_info().
*/
function {{ machine_name }}_filetransfer_info() {
$info['sftp'] = [
'title' => t('SFTP (Secure FTP)'),
'class' => 'Drupal\Core\FileTransfer\SFTP',
'weight' => 10,
];
return $info;
}