Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. StreamWrapperManagerInterface.php

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

1 method overrides StreamWrapperManagerInterface::getScheme()
StreamWrapperManager::getScheme in core/lib/Drupal/Core/StreamWrapper/StreamWrapperManager.php
Returns the scheme of a URI (e.g. a stream).

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal