public function StatisticsStorageInterface::fetchAll in Drupal 9
Same name and namespace in other branches
- 8 core/modules/statistics/src/StatisticsStorageInterface.php \Drupal\statistics\StatisticsStorageInterface::fetchAll()
Returns the number of times an entity has been viewed.
Parameters
string $order: The counter name to order by:
- 'totalcount' The total number of views.
- 'daycount' The number of views today.
- 'timestamp' The unix timestamp of the last view.
int $limit: The number of entity IDs to return.
Return value
array An ordered array of entity IDs.
1 method overrides StatisticsStorageInterface::fetchAll()
- NodeStatisticsDatabaseStorage::fetchAll in core/
modules/ statistics/ src/ NodeStatisticsDatabaseStorage.php - Returns the number of times an entity has been viewed.
File
- core/
modules/ statistics/ src/ StatisticsStorageInterface.php, line 63
Class
- StatisticsStorageInterface
- Provides an interface defining Statistics Storage.
Namespace
Drupal\statisticsCode
public function fetchAll($order = 'totalcount', $limit = 5);