public function EntityUsage::bulkDeleteAll in Entity Usage 8.4
Remove all records.
Overrides EntityUsageInterface::bulkDeleteAll
1 call to EntityUsage::bulkDeleteAll()
File
- src/
EntityUsage.php, line 172
Class
- EntityUsage
- Defines the entity usage base class.
Namespace
Drupal\entity_usageCode
public function bulkDeleteAll() {
$query = $this->connection
->delete($this->tableName);
$query
->execute();
$event = new EntityUsageEvent(NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
$this->eventDispatcher
->dispatch(Events::BULK_DELETE_ALL, $event);
}