You are here

public function FileSystemInterface::validScheme in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/File/FileSystemInterface.php \Drupal\Core\File\FileSystemInterface::validScheme()

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 FileSystemInterface::validScheme()
FileSystem::validScheme in core/lib/Drupal/Core/File/FileSystem.php
Checks that the scheme of a stream URI is valid.

File

core/lib/Drupal/Core/File/FileSystemInterface.php, line 243
Contains \Drupal\Core\File\FileSystemInterface.

Class

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

Namespace

Drupal\Core\File

Code

public function validScheme($scheme);