You are here

function file_build_uri in Zircon Profile 8

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

Constructs a URI to Drupal's default files location given a relative path.

Related topics

4 calls to file_build_uri()
file_unmanaged_copy in core/includes/file.inc
Copies a file to a new location without invoking the file API.
ImageStyle::buildUrl in core/modules/image/src/Entity/ImageStyle.php
Returns the URL of this image derivative for an original image path or URI.
StreamWrapperTest::testUriFunctions in core/modules/system/src/Tests/File/StreamWrapperTest.php
Test the getViaUri() and getViaScheme() methods and target functions.
system_retrieve_file in core/modules/system/system.module
Attempts to get a file using Guzzle HTTP client and to store it locally.

File

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

Code

function file_build_uri($path) {
  $uri = file_default_scheme() . '://' . $path;
  return file_stream_wrapper_uri_normalize($uri);
}