You are here

function file_uri_scheme in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/includes/file.inc \file_uri_scheme()

Returns the scheme of a URI (e.g. a stream).

Deprecated

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

Related topics

24 calls to file_uri_scheme()
config_file_download in core/modules/config/config.module
Implements hook_file_download().
CssOptimizer::loadFile in core/lib/Drupal/Core/Asset/CssOptimizer.php
Loads the stylesheet and resolves all @import commands.
file_save_upload in core/modules/file/file.module
Saves file uploads to a new location.
file_test_file_url_alter in core/modules/file/tests/file_test/file_test.module
Implements hook_file_url_alter().
GDToolkit::save in core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php
Writes an image resource to a destination file.

... See full list

1 string reference to 'file_uri_scheme'
CssOptimizerUnitTest.php in core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php
Contains \Drupal\Tests\Core\Asset\CssOptimizerUnitTest.

File

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

Code

function file_uri_scheme($uri) {
  return \Drupal::service('file_system')
    ->uriScheme($uri);
}