function AuditResult::jsonSerialize

Same name in other branches
  1. 8.9.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. 11.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[]

File

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

Class

AuditResult
Encapsulates the result of a migration audit.

Namespace

Drupal\migrate\Audit

Code

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

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