protected function FeedsSource::startBatchAPIJob in Feeds 8.2
Batch API helper. Starts a Batch API job.
Parameters
$title: Title to show to user when executing batch.
$method: Method to execute on importer; one of 'import' or 'clear'.
See also
2 calls to FeedsSource::startBatchAPIJob()
- FeedsSource::startClear in lib/
Drupal/ feeds/ FeedsSource.php - Start deleting all imported items of a source.
- FeedsSource::startImport in lib/
Drupal/ feeds/ FeedsSource.php - Start importing a source.
File
- lib/
Drupal/ feeds/ FeedsSource.php, line 633 - Definition of FeedsSourceInterface and FeedsSource class.
Class
- FeedsSource
- This class encapsulates a source of a feed. It stores where the feed can be found and how to import it.
Namespace
Drupal\feedsCode
protected function startBatchAPIJob($title, $method) {
$batch = array(
'title' => $title,
'operations' => array(
array(
'feeds_batch',
array(
$method,
$this->id,
$this->feed_nid,
),
),
),
);
batch_set($batch);
}