You are here

function flysystem_flysystem_plugins in Flysystem 7

Implements hook_flysystem_plugins().

File

./flysystem.module, line 161
Provides access to various filesystem backends using Flysystem.

Code

function flysystem_flysystem_plugins() {
  $plugins = array(
    'missing' => array(
      'class' => 'Drupal\\flysystem\\Flysystem\\Missing',
    ),
    'local' => array(
      'class' => 'Drupal\\flysystem\\Flysystem\\Local',
    ),
  );
  if (extension_loaded('ftp')) {
    $plugins['ftp']['class'] = 'Drupal\\flysystem\\Flysystem\\Ftp';
  }
  return $plugins;
}