public function ContentEntityStorageTrait::truncate in Multiversion 8
Truncate all related tables to entity type.
This function should be called to avoid calling pre-delete/delete hooks.
1 call to ContentEntityStorageTrait::truncate()
- NodeStorage::truncate in src/
Entity/ Storage/ Sql/ NodeStorage.php - Truncate all related tables to entity type.
File
- src/
Entity/ Storage/ ContentEntityStorageTrait.php, line 506
Class
Namespace
Drupal\multiversion\Entity\StorageCode
public function truncate() {
foreach ($this
->getTableMapping()
->getTableNames() as $table) {
$this->database
->truncate($table)
->execute();
}
}