public function IdAuditor::auditMultiple in Drupal 10
Same name and namespace in other branches
- 8 core/modules/migrate/src/Audit/IdAuditor.php \Drupal\migrate\Audit\IdAuditor::auditMultiple()
- 9 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 51
Class
- IdAuditor
- Audits migrations that create content entities in the destination system.
Namespace
Drupal\migrate\AuditCode
public function auditMultiple(array $migrations) {
$conflicts = [];
foreach ($migrations as $migration) {
$migration_id = $migration
->getPluginId();
$conflicts[$migration_id] = $this
->audit($migration);
}
ksort($conflicts);
return $conflicts;
}