function StreamWrapperManagerInterface::getScheme

Same name in other branches
  1. 9 core/lib/Drupal/Core/StreamWrapper/StreamWrapperManagerInterface.php \Drupal\Core\StreamWrapper\StreamWrapperManagerInterface::getScheme()
  2. 8.9.x core/lib/Drupal/Core/StreamWrapper/StreamWrapperManagerInterface.php \Drupal\Core\StreamWrapper\StreamWrapperManagerInterface::getScheme()
  3. 11.x core/lib/Drupal/Core/StreamWrapper/StreamWrapperManagerInterface.php \Drupal\Core\StreamWrapper\StreamWrapperManagerInterface::getScheme()

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

\Drupal\Core\StreamWrapper\StreamWrapperManagerInterface::getTarget()

File

core/lib/Drupal/Core/StreamWrapper/StreamWrapperManagerInterface.php, line 216

Class

StreamWrapperManagerInterface
Provides a StreamWrapper manager.

Namespace

Drupal\Core\StreamWrapper

Code

public static function getScheme($uri);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.