You are here

protected static function Remote::setTransferOptions in FileField Sources 8

Set a transfer key that can be retreived by the progress function.

2 calls to Remote::setTransferOptions()
Remote::getTransferOptions in src/Plugin/FilefieldSource/Remote.php
Get a transfer key that can be retrieved by the progress function.
Remote::value in src/Plugin/FilefieldSource/Remote.php
Value callback for file field source plugin.

File

src/Plugin/FilefieldSource/Remote.php, line 186

Class

Remote
A FileField source plugin to allow downloading a file from a remote server.

Namespace

Drupal\filefield_sources\Plugin\FilefieldSource

Code

protected static function setTransferOptions($options = NULL) {
  static $current = FALSE;
  if (isset($options)) {
    $current = $options;
  }
  return $current;
}