StreamWrapperManager::getClass

public StreamWrapperManager::getClass($scheme)

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 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;
}
doc_Drupal
2016-10-29 09:44:54
Comments
Leave a Comment

Please login to continue.