function AuditResult::fail
Same name in other branches
- 9 core/modules/migrate/src/Audit/AuditResult.php \Drupal\migrate\Audit\AuditResult::fail()
- 8.9.x core/modules/migrate/src/Audit/AuditResult.php \Drupal\migrate\Audit\AuditResult::fail()
- 11.x 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\AuditCode
public static function fail(MigrationInterface $migration, array $reasons = []) {
return new static($migration, FALSE, $reasons);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.