protected static function Remote::filename in FileField Sources 8
Get/set the remote file name in a static variable.
2 calls to Remote::filename()
- Remote::parseHeader in src/
Plugin/ FilefieldSource/ Remote.php - Parse cURL header and record the filename specified in Content-Disposition.
- Remote::value in src/
Plugin/ FilefieldSource/ Remote.php - Value callback for file field source plugin.
File
- src/
Plugin/ FilefieldSource/ Remote.php, line 275
Class
- Remote
- A FileField source plugin to allow downloading a file from a remote server.
Namespace
Drupal\filefield_sources\Plugin\FilefieldSourceCode
protected static function filename($curl_filename = NULL) {
static $filename = NULL;
if (isset($curl_filename)) {
$filename = $curl_filename;
}
return $filename;
}