$results =
(new IdAuditor())->
auditMultiple($migrations);
/** @var \Drupal\migrate\Audit\AuditResult $result */
foreach ($results as $result) { $destination =
$result->
getMigration()->
getDestinationPlugin();
if ($destination instanceof EntityContentBase &&
$destination->
isTranslationDestination()) { // Translations are not yet supported by the audit system. For now, we
// only warn the user to be cautious when migrating translated content.
// I18n support should be added in https://www.drupal.org/node/2905759.
$translated_content_conflicts[] =
$result;
} elseif (!
$result->
passed()) { $content_conflicts[] =
$result;
} } if ($content_conflicts ||
$translated_content_conflicts) { $this->
messenger()->
addWarning($this->
t('WARNING: Content may be overwritten on your new site.'
));
$form = parent::
buildForm($form,
$form_state);
$form['#title'
] =
$this->
t('Upgrade analysis report'
);
if ($content_conflicts) {