You are here

protected function FeedsFileFetcher::getSchemeOptions in Feeds 8.2

Returns available scheme options for use in checkboxes or select list.

Return value

array The available scheme array keyed scheme => description.

1 call to FeedsFileFetcher::getSchemeOptions()
FeedsFileFetcher::configForm in lib/Drupal/feeds/Plugin/feeds/fetcher/FeedsFileFetcher.php
Overrides parent::configForm().

File

lib/Drupal/feeds/Plugin/feeds/fetcher/FeedsFileFetcher.php, line 331
Home of the FeedsFileFetcher and related classes.

Class

FeedsFileFetcher
Defines a file fetcher.

Namespace

Drupal\feeds\Plugin\feeds\fetcher

Code

protected function getSchemeOptions() {
  $options = array();
  foreach (file_get_stream_wrappers(STREAM_WRAPPERS_WRITE_VISIBLE) as $scheme => $info) {
    $options[$scheme] = check_plain($scheme . ': ' . $info['description']);
  }
  return $options;
}