protected function DirectoryFetcherForm::getSchemeOptions in Feeds 8.3
Returns available scheme options for use in checkboxes or select list.
Return value
array The available scheme array keyed scheme => description.
1 call to DirectoryFetcherForm::getSchemeOptions()
- DirectoryFetcherForm::buildConfigurationForm in src/
Feeds/ Fetcher/ Form/ DirectoryFetcherForm.php - Form constructor.
File
- src/
Feeds/ Fetcher/ Form/ DirectoryFetcherForm.php, line 88
Class
- DirectoryFetcherForm
- Defines a directory fetcher.
Namespace
Drupal\feeds\Feeds\Fetcher\FormCode
protected function getSchemeOptions() {
$options = [];
foreach ($this->streamWrapperManager
->getDescriptions(StreamWrapperInterface::WRITE_VISIBLE) as $scheme => $description) {
$options[$scheme] = Html::escape($scheme . ': ' . $description);
}
return $options;
}