file_stream_wrapper_valid_scheme

file_stream_wrapper_valid_scheme($scheme)

Checks that the scheme of a stream URI is valid.

Deprecated

in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0. Use \Drupal\Core\File\FileSystem::validScheme().

Related topics

File interface
Common file handling functions.

File

core/includes/file.inc, line 91
API for handling file uploads and server file management.

Code

function file_stream_wrapper_valid_scheme($scheme) {
  return \Drupal::service('file_system')->validScheme($scheme);
}
doc_Drupal
2016-10-29 09:14:16
Comments
Leave a Comment

Please login to continue.