You are here

protected function File::getSchemeOptions in Freelinking 8.3

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

Get the stream managers keyed by name for the options list.

Return value

array An array of options.

1 call to File::getSchemeOptions()
File::settingsForm in src/Plugin/freelinking/File.php
Plugin configuration form.

File

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

Class

File
Freelinking file plugin.

Namespace

Drupal\freelinking\Plugin\freelinking

Code

protected function getSchemeOptions() {
  $options = [];
  $schemes = $this->streamWrapperManager
    ->getNames(StreamWrapperInterface::WRITE_VISIBLE);
  foreach ($schemes as $scheme => $name) {
    $options[$scheme] = $name;
  }
  return $options;
}