function AuditResult::jsonSerialize

Same name and namespace in other branches
  1. 11.x core/modules/migrate/src/Audit/AuditResult.php \Drupal\migrate\Audit\AuditResult::jsonSerialize()
  2. 10 core/modules/migrate/src/Audit/AuditResult.php \Drupal\migrate\Audit\AuditResult::jsonSerialize()
  3. 9 core/modules/migrate/src/Audit/AuditResult.php \Drupal\migrate\Audit\AuditResult::jsonSerialize()
  4. 8.9.x core/modules/migrate/src/Audit/AuditResult.php \Drupal\migrate\Audit\AuditResult::jsonSerialize()

Returns the reasons the migration passed or failed, for JSON serialization.

Return value

string[] The reasons why the migration passed or failed the audit.

File

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

Class

AuditResult
Encapsulates the result of a migration audit.

Namespace

Drupal\migrate\Audit

Code

public function jsonSerialize() : string {
  return $this->reasons;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.