You are here

public function MimeStreamWrapper::getStreamPath in UIkit Components 8.3

Gets the stream path to the source using WRAPPER_NAME.

Return value

string

File

src/MimeStreamWrapper.php, line 106

Class

MimeStreamWrapper
Provides a stream wrapper to retrieve mime type information from any source.

Namespace

Drupal\uikit_components

Code

public function getStreamPath() {
  return str_replace([
    'ftp://',
    'http://',
    'https://',
  ], self::WRAPPER_NAME . '://', $this->path);
}