FileSystemInterface::uriScheme

public FileSystemInterface::uriScheme($uri)

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()

File

core/lib/Drupal/Core/File/FileSystemInterface.php, line 222

Class

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

Namespace

Drupal\Core\File

Code

public function uriScheme($uri);
doc_Drupal
2016-10-29 09:13:57
Comments
Leave a Comment

Please login to continue.