You are here

public static function AuditResult::fail in Drupal 9

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

Creates a failing audit result for a migration.

Parameters

\Drupal\migrate\Plugin\MigrationInterface $migration: The audited migration.

array $reasons: (optional) The reasons why the migration failed the audit.

Return value

static

1 call to AuditResult::fail()
IdAuditor::audit in core/modules/migrate/src/Audit/IdAuditor.php
Audits a migration.

File

core/modules/migrate/src/Audit/AuditResult.php, line 111

Class

AuditResult
Encapsulates the result of a migration audit.

Namespace

Drupal\migrate\Audit

Code

public static function fail(MigrationInterface $migration, array $reasons = []) {
  return new static($migration, FALSE, $reasons);
}