You are here

function file_default_scheme in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/includes/file.inc \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

23 calls to file_default_scheme()
DirectoryTest::testFileCheckDirectoryHandling in core/modules/system/src/Tests/File/DirectoryTest.php
Test directory handling functions.
EditorLoadingTest::testLoading in core/modules/editor/src/Tests/EditorLoadingTest.php
Tests loading of text editors.
EditorLoadingTest::testSupportedElementTypes in core/modules/editor/src/Tests/EditorLoadingTest.php
Test supported element types.
editor_image_upload_settings_form in core/modules/editor/editor.admin.inc
Subform constructor to configure the text editor's image upload settings.
FileItem::defaultStorageSettings in core/modules/file/src/Plugin/Field/FieldType/FileItem.php
Defines the storage-level settings for this plugin.

... See full list

1 string reference to 'file_default_scheme'
FileSystemForm::submitForm in core/modules/system/src/Form/FileSystemForm.php
Form submission handler.

File

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

Code

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