You are here

public static function AuditResult::pass in Drupal 9

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

Creates a passing audit result for a migration.

Parameters

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

string[] $reasons: (optional) The reasons why the migration passed the audit.

Return value

static

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

File

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

Class

AuditResult
Encapsulates the result of a migration audit.

Namespace

Drupal\migrate\Audit

Code

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