You are here

public function StatisticsStorageInterface::recordView in Drupal 10

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

Counts an entity view.

Parameters

int $id: The ID of the entity to count.

Return value

bool TRUE if the entity view has been counted.

File

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

Class

StatisticsStorageInterface
Provides an interface defining Statistics Storage.

Namespace

Drupal\statistics

Code

public function recordView($id);