You are here

public function StreamWrapperManager::getClass in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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

File

core/lib/Drupal/Core/StreamWrapper/StreamWrapperManager.php, line 112
Contains \Drupal\Core\StreamWrapper\StreamWrapperManager.

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