You are here

public function StatisticsStorageInterface::deleteViews in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/statistics/src/StatisticsStorageInterface.php \Drupal\statistics\StatisticsStorageInterface::deleteViews()
  2. 10 core/modules/statistics/src/StatisticsStorageInterface.php \Drupal\statistics\StatisticsStorageInterface::deleteViews()

Delete counts for a specific entity.

Parameters

int $id: The ID of the entity which views to delete.

Return value

bool TRUE if the entity views have been deleted.

1 method overrides StatisticsStorageInterface::deleteViews()
NodeStatisticsDatabaseStorage::deleteViews in core/modules/statistics/src/NodeStatisticsDatabaseStorage.php
Delete counts for a specific entity.

File

core/modules/statistics/src/StatisticsStorageInterface.php, line 74

Class

StatisticsStorageInterface
Provides an interface defining Statistics Storage.

Namespace

Drupal\statistics

Code

public function deleteViews($id);