You are here

protected function File::loadScheme in Freelinking 4.0.x

Same name and namespace in other branches
  1. 8.3 src/Plugin/freelinking/File.php \Drupal\freelinking\Plugin\freelinking\File::loadScheme()

Load the stream wrapper for a given scheme.

Parameters

string $scheme: The scheme to load.

Return value

\Drupal\Core\StreamWrapper\StreamWrapperInterface The stream wrapper to use.

1 call to File::loadScheme()
File::buildLink in src/Plugin/freelinking/File.php
Build a link with the plugin.

File

src/Plugin/freelinking/File.php, line 179

Class

File
Freelinking file plugin.

Namespace

Drupal\freelinking\Plugin\freelinking

Code

protected function loadScheme($scheme) {
  return $this->streamWrapperManager
    ->getViaScheme($scheme);
}