function file_default_scheme

file_default_scheme()

Gets the default file stream implementation.

Return value

string 'public', 'private' or any other file scheme defined as the default.

Related topics

File interface
Common file handling functions.

File

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

Code

function file_default_scheme() {
  return \Drupal::config('system.file')->get('default_scheme');
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!includes!file.inc/function/file_default_scheme/8.1.x