protected function File::getSchemeOptions in Freelinking 4.0.x
Same name and namespace in other branches
- 8.3 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\freelinkingCode
protected function getSchemeOptions() {
$options = [];
$schemes = $this->streamWrapperManager
->getNames(StreamWrapperInterface::WRITE_VISIBLE);
foreach ($schemes as $scheme => $name) {
$options[$scheme] = $name;
}
return $options;
}