class ConfigImporterBatch (View source)

Methods for running the ConfigImporter in a batch.

Methods

static 
process(ConfigImporter $config_importer, string $sync_step, array $context)

Processes the config import batch and persists the importer.

static 
finish(bool $success, array $results, array $operations)

Finish batch.

Details

static process(ConfigImporter $config_importer, string $sync_step, array $context)

Processes the config import batch and persists the importer.

Parameters

ConfigImporter $config_importer

The batch config importer object to persist.

string $sync_step

The synchronization step to do.

array $context

The batch context.

static finish(bool $success, array $results, array $operations)

Finish batch.

This function is a static function to avoid serializing the ConfigSync object unnecessarily.

Parameters

bool $success

Indicate that the batch API tasks were all completed successfully.

array $results

An array of all the results that were updated in update_do_one().

array $operations

A list of the operations that had not been completed by the batch API.