You are here

public static function Batch::generate in Simple XML sitemap 8.2

Batch callback function which generates URLs.

Parameters

$plugin_id:

array|null $data_sets:

array $batch_settings:

$context:

See also

https://api.drupal.org/api/drupal/core!includes!form.inc/group/batch/8

File

src/Batch.php, line 129

Class

Batch
Class Batch @package Drupal\simple_sitemap\Batch

Namespace

Drupal\simple_sitemap

Code

public static function generate($plugin_id, $data_sets, array $batch_settings, &$context) {
  \Drupal::service('plugin.manager.simple_sitemap.url_generator')
    ->createInstance($plugin_id)
    ->setContext($context)
    ->setBatchSettings($batch_settings)
    ->generate($data_sets);
}