You are here

private function ImagickToolkit::isValidUri in Imagick 8

Parameters

$uri:

Return value

bool

2 calls to ImagickToolkit::isValidUri()
ImagickToolkit::isRemoteUri in src/Plugin/ImageToolkit/ImagickToolkit.php
Returns TRUE if the $uri points to a remote location, FALSE otherwise.
ImagickToolkit::save in src/Plugin/ImageToolkit/ImagickToolkit.php
Writes an image resource to a destination file.

File

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

Class

ImagickToolkit
Defines the Imagick toolkit for image manipulation within Drupal.

Namespace

Drupal\imagick\Plugin\ImageToolkit

Code

private function isValidUri($uri) {
  $scheme = $this->streamWrapperManager
    ->getScheme($uri);
  return $scheme && $this->streamWrapperManager
    ->isValidScheme($scheme);
}