You are here

public static function VersionMismatches::batch in CMS Content Sync 8

Same name and namespace in other branches
  1. 2.1.x modules/cms_content_sync_health/src/Controller/VersionMismatches.php \Drupal\cms_content_sync_health\Controller\VersionMismatches::batch()
  2. 2.0.x modules/cms_content_sync_health/src/Controller/VersionMismatches.php \Drupal\cms_content_sync_health\Controller\VersionMismatches::batch()

Batch push callback for the push-all operation.

Parameters

$type_key:

$entity_bundle_name:

$context:

File

modules/cms_content_sync_health/src/Controller/VersionMismatches.php, line 94

Class

VersionMismatches
Show all version mismatches of all entity types. Can take some time to execute depending on the number of entity types configured, so is run as a batch operation.

Namespace

Drupal\cms_content_sync_health\Controller

Code

public static function batch($type_key, $entity_bundle_name, &$context) {
  $message = 'Checking ' . $type_key . '.' . $entity_bundle_name . '...';
  $results = [];
  if (isset($context['results'])) {
    $results = $context['results'];
  }
  _cms_content_sync_display_entity_type_differences_recursively($results, $type_key, $entity_bundle_name);
  $context['message'] = $message;
  $context['results'] = $results;
}