function AuditResult::jsonSerialize

Same name in other branches
  1. 9 core/modules/migrate/src/Audit/AuditResult.php \Drupal\migrate\Audit\AuditResult::jsonSerialize()
  2. 8.9.x core/modules/migrate/src/Audit/AuditResult.php \Drupal\migrate\Audit\AuditResult::jsonSerialize()
  3. 10 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[]

File

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

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.