You are here

protected function StreamWrapper::usePresigned in AmazonS3 7.2

Find if the URL should be presigned.

Return value

PresignedPath|bool The matching PresignedPath if a presigned URL should be served, FALSE otherwise.

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

File

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

Class

StreamWrapper
@file Drupal stream wrapper implementation for Amazon S3

Namespace

Drupal\amazons3

Code

protected function usePresigned() {
  return $this->config
    ->getPresignedPaths()
    ->match($this
    ->getLocalPath());
}