function AuditResult::count

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

Implements \Countable::count() for Twig template compatibility.

Return value

int

See also

\Drupal\Component\Render\MarkupInterface

File

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

Class

AuditResult
Encapsulates the result of a migration audit.

Namespace

Drupal\migrate\Audit

Code

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

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