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

Breadcrumb

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

function StreamWrapperManagerInterface::isValidScheme

Checks that the scheme of a stream URI is valid.

Confirms that there is a registered stream handler for the provided scheme and that it is callable. This is useful if you want to confirm a valid scheme without creating a new instance of the registered handler.

Parameters

string $scheme: A URI scheme, a stream is referenced as "scheme://target".

Return value

bool Returns TRUE if the string is the name of a validated stream, or FALSE if the scheme does not have a registered handler.

1 method overrides StreamWrapperManagerInterface::isValidScheme()
StreamWrapperManager::isValidScheme in core/lib/Drupal/Core/StreamWrapper/StreamWrapperManager.php
Checks that the scheme of a stream URI is valid.

File

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

Class

StreamWrapperManagerInterface
Provides a StreamWrapper manager.

Namespace

Drupal\Core\StreamWrapper

Code

public function isValidScheme($scheme);

API Navigation

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