You are here

function file_is_uri_remote in Remote Stream Wrapper 8

1 call to file_is_uri_remote()
ImageStyle::fileIsUriRemote in src/Entity/ImageStyle.php
Provides a wrapper for file_is_uri_remote() to allow unit testing.

File

./remote_stream_wrapper.module, line 21

Code

function file_is_uri_remote($uri) {
  if ($wrapper = \Drupal::service('stream_wrapper_manager')
    ->getViaUri($uri)) {
    return file_is_wrapper_remote($wrapper);
  }
  else {
    return FALSE;
  }
}