You are here

public function UploadFetcher::defaultConfiguration in Feeds 8.3

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides PluginBase::defaultConfiguration

File

src/Feeds/Fetcher/UploadFetcher.php, line 128

Class

UploadFetcher
Defines a file upload fetcher.

Namespace

Drupal\feeds\Feeds\Fetcher

Code

public function defaultConfiguration() {
  $schemes = $this
    ->getSchemes();
  $scheme = in_array('private', $schemes) ? 'private' : reset($schemes);
  return [
    'allowed_extensions' => 'txt csv tsv xml opml',
    'directory' => $scheme . '://feeds',
  ];
}