You are here

public function EntityUsage::bulkDeleteAll in Entity Usage 8.4

Remove all records.

Overrides EntityUsageInterface::bulkDeleteAll

1 call to EntityUsage::bulkDeleteAll()
EntityUsage::deleteTrackingInformation in src/EntityUsage.php

File

src/EntityUsage.php, line 172

Class

EntityUsage
Defines the entity usage base class.

Namespace

Drupal\entity_usage

Code

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);
}