function NodeStatisticsDatabaseStorage::deleteViews

File

core/modules/statistics/src/NodeStatisticsDatabaseStorage.php, line 110

Class

NodeStatisticsDatabaseStorage
Provides the default database storage backend for statistics.

Namespace

Drupal\statistics

Code

public function deleteViews($id) {
  return (bool) $this->connection
    ->delete('node_counter')
    ->condition('nid', $id)
    ->execute();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.