function NodeStatisticsDatabaseStorage::getRequestTime
Same name in other branches
- 8.9.x core/modules/statistics/src/NodeStatisticsDatabaseStorage.php \Drupal\statistics\NodeStatisticsDatabaseStorage::getRequestTime()
- 10 core/modules/statistics/src/NodeStatisticsDatabaseStorage.php \Drupal\statistics\NodeStatisticsDatabaseStorage::getRequestTime()
- 11.x core/modules/statistics/src/NodeStatisticsDatabaseStorage.php \Drupal\statistics\NodeStatisticsDatabaseStorage::getRequestTime()
Get current request time.
Return value
int Unix timestamp for current server request time.
1 call to NodeStatisticsDatabaseStorage::getRequestTime()
- NodeStatisticsDatabaseStorage::resetDayCount in core/
modules/ statistics/ src/ NodeStatisticsDatabaseStorage.php - Reset the day counter for all entities once every day.
File
-
core/
modules/ statistics/ src/ NodeStatisticsDatabaseStorage.php, line 146
Class
- NodeStatisticsDatabaseStorage
- Provides the default database storage backend for statistics.
Namespace
Drupal\statisticsCode
protected function getRequestTime() {
return $this->requestStack
->getCurrentRequest()->server
->get('REQUEST_TIME');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.