You are here

public function StreamWrapperManager::isValidScheme in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/StreamWrapper/StreamWrapperManager.php \Drupal\Core\StreamWrapper\StreamWrapperManager::isValidScheme()
  2. 9 core/lib/Drupal/Core/StreamWrapper/StreamWrapperManager.php \Drupal\Core\StreamWrapper\StreamWrapperManager::isValidScheme()

File

core/lib/Drupal/Core/StreamWrapper/StreamWrapperManager.php, line 267

Class

StreamWrapperManager
Provides a StreamWrapper manager.

Namespace

Drupal\Core\StreamWrapper

Code

public function isValidScheme($scheme) {
  if (!$scheme) {
    return FALSE;
  }
  return class_exists($this
    ->getClass($scheme));
}