You are here

public function FileSystemInterface::uriScheme in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/File/FileSystemInterface.php \Drupal\Core\File\FileSystemInterface::uriScheme()

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

Parameters

string $uri: A stream, referenced as "scheme://target" or "data:target".

Return value

string|bool A string containing the name of the scheme, or FALSE if none. For example, the URI "public://example.txt" would return "public".

See also

file_uri_target()

1 method overrides FileSystemInterface::uriScheme()
FileSystem::uriScheme in core/lib/Drupal/Core/File/FileSystem.php
Returns the scheme of a URI (e.g. a stream).

File

core/lib/Drupal/Core/File/FileSystemInterface.php, line 227
Contains \Drupal\Core\File\FileSystemInterface.

Class

FileSystemInterface
Provides an interface for helpers that operate on files and stream wrappers.

Namespace

Drupal\Core\File

Code

public function uriScheme($uri);