You are here

protected function FlysystemPluginBase::getScheme in Flysystem 7

Returns the scheme from the internal URI.

Parameters

string $uri: The URI.

Return value

string The scheme.

1 call to FlysystemPluginBase::getScheme()
FlysystemPluginBase::getExternalUrl in src/Plugin/FlysystemPluginBase.php
Returns a web accessible URL for the resource.

File

src/Plugin/FlysystemPluginBase.php, line 55
Contains FlysystemPluginBase.

Class

FlysystemPluginBase
Base class for plugins.

Namespace

Drupal\flysystem\Plugin

Code

protected function getScheme($uri) {
  return substr($uri, 0, strpos($uri, '://'));
}