You are here

private function ImagickToolkit::isRemoteUri in Imagick 8

Returns TRUE if the $uri points to a remote location, FALSE otherwise.

Parameters

$uri:

Return value

bool

3 calls to ImagickToolkit::isRemoteUri()
ImagickToolkit::getPath in src/Plugin/ImageToolkit/ImagickToolkit.php
ensure that we have a local filepath since Imagick does not support remote stream wrappers
ImagickToolkit::parseFile in src/Plugin/ImageToolkit/ImagickToolkit.php
Determines if a file contains a valid image.
ImagickToolkit::save in src/Plugin/ImageToolkit/ImagickToolkit.php
Writes an image resource to a destination file.

File

src/Plugin/ImageToolkit/ImagickToolkit.php, line 371

Class

ImagickToolkit
Defines the Imagick toolkit for image manipulation within Drupal.

Namespace

Drupal\imagick\Plugin\ImageToolkit

Code

private function isRemoteUri($uri) {
  if (!$this
    ->isValidUri($uri)) {
    return FALSE;
  }
  $local_wrappers = $this->streamWrapperManager
    ->getWrappers(StreamWrapperInterface::LOCAL);
  return !in_array($this->streamWrapperManager
    ->getScheme($uri), array_keys($local_wrappers));
}