You are here

protected function StreamWrapper::forceDownload in AmazonS3 7.2

Find if this URI should force a download.

Return value

BasicPath|bool The BasicPath if the local path of the stream URI should force a download, FALSE otherwise.

1 call to StreamWrapper::forceDownload()
StreamWrapper::getExternalUrl in src/StreamWrapper.php

File

src/StreamWrapper.php, line 405
Drupal stream wrapper implementation for Amazon S3

Class

StreamWrapper
@file Drupal stream wrapper implementation for Amazon S3

Namespace

Drupal\amazons3

Code

protected function forceDownload() {
  return $this->config
    ->getSaveAsPaths()
    ->match($this
    ->getLocalPath());
}