public function StatisticsStorageInterface::recordView in Drupal 8
Same name and namespace in other branches
- 9 core/modules/statistics/src/StatisticsStorageInterface.php \Drupal\statistics\StatisticsStorageInterface::recordView()
- 10 core/modules/statistics/src/StatisticsStorageInterface.php \Drupal\statistics\StatisticsStorageInterface::recordView()
Count a 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 - Count a entity view.
File
- core/
modules/ statistics/ src/ StatisticsStorageInterface.php, line 22
Class
- StatisticsStorageInterface
- Provides an interface defining Statistics Storage.
Namespace
Drupal\statisticsCode
public function recordView($id);