You are here

function file_is_scheme_remote in Remote Stream Wrapper 8

Same name and namespace in other branches
  1. 7 remote_stream_wrapper.module \file_is_scheme_remote()

File

./remote_stream_wrapper.module, line 12

Code

function file_is_scheme_remote($scheme) {
  if ($wrapper = \Drupal::service('stream_wrapper_manager')
    ->getViaScheme($scheme)) {
    return file_is_wrapper_remote($wrapper);
  }
  else {
    return FALSE;
  }
}