You are here

public function Batch::addOperation in Simple XML sitemap 8.2

Adds an operation to the batch.

Parameters

$plugin_id:

array|null $data_sets:

File

src/Batch.php, line 113

Class

Batch
Class Batch @package Drupal\simple_sitemap\Batch

Namespace

Drupal\simple_sitemap

Code

public function addOperation($plugin_id, $data_sets = NULL) {
  $this->batch['operations'][] = [
    __CLASS__ . '::generate',
    [
      $plugin_id,
      $data_sets,
      $this->batchSettings,
    ],
  ];
}