You are here

public function Sql::clearMessages in Drupal 9

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::clearMessages()
  2. 10 core/modules/migrate/src/Plugin/migrate/id_map/Sql.php \Drupal\migrate\Plugin\migrate\id_map\Sql::clearMessages()

Clears all messages from the map.

Overrides MigrateIdMapInterface::clearMessages

File

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

Class

Sql
Defines the sql based ID map implementation.

Namespace

Drupal\migrate\Plugin\migrate\id_map

Code

public function clearMessages() {
  $this
    ->getDatabase()
    ->truncate($this
    ->messageTableName())
    ->execute();
}