You are here

public function Sql::errorCount in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/migrate/src/Plugin/migrate/id_map/Sql.php \Drupal\migrate\Plugin\migrate\id_map\Sql::errorCount()
  2. 9 core/modules/migrate/src/Plugin/migrate/id_map/Sql.php \Drupal\migrate\Plugin\migrate\id_map\Sql::errorCount()

Returns the number of items that failed to import.

Return value

int The number of items that failed to import.

Overrides MigrateIdMapInterface::errorCount

File

core/modules/migrate/src/Plugin/migrate/id_map/Sql.php, line 778

Class

Sql
Defines the sql based ID map implementation.

Namespace

Drupal\migrate\Plugin\migrate\id_map

Code

public function errorCount() {
  return $this
    ->countHelper(MigrateIdMapInterface::STATUS_FAILED);
}