function StatisticsStorageInterface::recordView

Same name in other branches
  1. 8.9.x core/modules/statistics/src/StatisticsStorageInterface.php \Drupal\statistics\StatisticsStorageInterface::recordView()
  2. 10 core/modules/statistics/src/StatisticsStorageInterface.php \Drupal\statistics\StatisticsStorageInterface::recordView()
  3. 11.x 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.

1 method overrides StatisticsStorageInterface::recordView()
NodeStatisticsDatabaseStorage::recordView in core/modules/statistics/src/NodeStatisticsDatabaseStorage.php
Counts an entity view.

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

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