W3cubDocs

/Drupal 8

function drupal_get_filetransfer_info

drupal_get_filetransfer_info()

Assembles the Drupal FileTransfer registry.

Return value

The Drupal FileTransfer class registry.

See also

\Drupal\Core\FileTransfer\FileTransfer

hook_filetransfer_info()

hook_filetransfer_info_alter()

File

core/includes/common.inc, line 1288
Common functions that many Drupal modules will need to reference.

Code

function drupal_get_filetransfer_info() {
  $info = &drupal_static(__FUNCTION__);
  if (!isset($info)) {
    $info = \Drupal::moduleHandler()->invokeAll('filetransfer_info');
    \Drupal::moduleHandler()->alter('filetransfer_info', $info);
    uasort($info, array(SortArray::class, 'sortByWeightElement'));
  }
  return $info;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!includes!common.inc/function/drupal_get_filetransfer_info/8.1.x