You are here

public function IdAuditor::auditMultiple in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/migrate/src/Audit/IdAuditor.php \Drupal\migrate\Audit\IdAuditor::auditMultiple()

Audits a set of migrations.

Parameters

\Drupal\migrate\Plugin\MigrationInterface[] $migrations: The migrations to audit.

Return value

\Drupal\migrate\Audit\AuditResult[] The audit results, keyed by migration ID.

Overrides AuditorInterface::auditMultiple

File

core/modules/migrate/src/Audit/IdAuditor.php, line 49

Class

IdAuditor
Audits migrations that create content entities in the destination system.

Namespace

Drupal\migrate\Audit

Code

public function auditMultiple(array $migrations) {
  $conflicts = [];
  foreach ($migrations as $migration) {
    $migration_id = $migration
      ->getPluginId();
    $conflicts[$migration_id] = $this
      ->audit($migration);
  }
  ksort($conflicts);
  return $conflicts;
}