You are here

public function AuditResult::__toString in Drupal 10

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

Returns the reasons the migration passed or failed, as a string.

Return value

string

Overrides MarkupInterface::__toString

See also

\Drupal\Component\Render\MarkupInterface

File

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

Class

AuditResult
Encapsulates the result of a migration audit.

Namespace

Drupal\migrate\Audit

Code

public function __toString() {
  return implode("\n", $this->reasons);
}