function AuditResult::addReason
Same name in other branches
- 9 core/modules/migrate/src/Audit/AuditResult.php \Drupal\migrate\Audit\AuditResult::addReason()
- 8.9.x core/modules/migrate/src/Audit/AuditResult.php \Drupal\migrate\Audit\AuditResult::addReason()
- 10 core/modules/migrate/src/Audit/AuditResult.php \Drupal\migrate\Audit\AuditResult::addReason()
Adds a reason why the migration passed or failed the audit.
Parameters
string|object $reason: The reason to add. Can be a string or a string-castable object.
Return value
$this
File
-
core/
modules/ migrate/ src/ Audit/ AuditResult.php, line 82
Class
- AuditResult
- Encapsulates the result of a migration audit.
Namespace
Drupal\migrate\AuditCode
public function addReason($reason) {
array_push($this->reasons, (string) $reason);
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.