protected function StreamWrapper::useTorrent in AmazonS3 7.2
Find if the URL should be returned as a torrent.
Return value
BasicPath|bool The BasicPath if a torrent should be served, FALSE otherwise.
1 call to StreamWrapper::useTorrent()
File
- src/
StreamWrapper.php, line 415 - Drupal stream wrapper implementation for Amazon S3
Class
- StreamWrapper
- @file Drupal stream wrapper implementation for Amazon S3
Namespace
Drupal\amazons3Code
protected function useTorrent() {
return $this->config
->getTorrentPaths()
->match($this
->getLocalPath());
}