You are here

public function StreamWrapperManager::getClass in Drupal 9

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

Returns the stream wrapper class name for a given scheme.

Parameters

string $scheme: Stream scheme.

Return value

string|bool Return string if a scheme has a registered handler, or FALSE.

Overrides StreamWrapperManagerInterface::getClass

1 call to StreamWrapperManager::getClass()
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/StreamWrapperManager.php, line 110

Class

StreamWrapperManager
Provides a StreamWrapper manager.

Namespace

Drupal\Core\StreamWrapper

Code

public function getClass($scheme) {
  if (isset($this->info[$scheme])) {
    return $this->info[$scheme]['class'];
  }
  return FALSE;
}