public function FeedsImporter::configDefaults in Feeds 8.2
Return defaults for feed configuration.
Overrides FeedsConfigurable::configDefaults
File
- lib/
Drupal/ feeds/ FeedsImporter.php, line 173 - FeedsImporter class and related.
Class
- FeedsImporter
- A FeedsImporter object describes how an external source should be fetched, parsed and processed. Feeds can manage an arbitrary amount of importers.
Namespace
Drupal\feedsCode
public function configDefaults() {
return array(
'name' => '',
'description' => '',
'fetcher' => array(
'plugin_key' => 'http',
),
'parser' => array(
'plugin_key' => 'syndication',
),
'processor' => array(
'plugin_key' => 'node',
),
'content_type' => '',
'update' => 0,
'import_period' => 1800,
// Refresh every 30 minutes by default.
'expire_period' => 3600,
// Expire every hour by default, this is a hidden setting.
'import_on_create' => TRUE,
// Import on submission.
'process_in_background' => FALSE,
);
}