You are here

public function FetchManagerInterface::fetch in Stage File Proxy 8

Downloads a remote file and saves it to the local files directory.

Parameters

string $server: The origin server URL.

string $remote_file_dir: The relative path to the files directory on the origin server.

string $relative_path: The path to the requested resource relative to the files directory.

array $options: Options for the request.

Return value

bool Returns true if the content was downloaded, otherwise false.

1 method overrides FetchManagerInterface::fetch()
FetchManager::fetch in src/FetchManager.php
Downloads a remote file and saves it to the local files directory.

File

src/FetchManagerInterface.php, line 44

Class

FetchManagerInterface
Interface for FetchManager.

Namespace

Drupal\stage_file_proxy

Code

public function fetch($server, $remote_file_dir, $relative_path, array $options);