public FileSystemInterface::uriScheme($uri)
Returns the scheme of a URI (e.g. a stream).
string $uri: A stream, referenced as "scheme://target" or "data:target".
string|bool A string containing the name of the scheme, or FALSE if none. For example, the URI "public://example.txt" would return "public".
public function uriScheme($uri);
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!File!FileSystemInterface.php/function/FileSystemInterface::uriScheme/8.1.x