function NodeStatisticsDatabaseStorage::fetchView
Same name in other branches
- 9 core/modules/statistics/src/NodeStatisticsDatabaseStorage.php \Drupal\statistics\NodeStatisticsDatabaseStorage::fetchView()
- 10 core/modules/statistics/src/NodeStatisticsDatabaseStorage.php \Drupal\statistics\NodeStatisticsDatabaseStorage::fetchView()
- 11.x core/modules/statistics/src/NodeStatisticsDatabaseStorage.php \Drupal\statistics\NodeStatisticsDatabaseStorage::fetchView()
Overrides StatisticsStorageInterface::fetchView
File
-
core/
modules/ statistics/ src/ NodeStatisticsDatabaseStorage.php, line 85
Class
- NodeStatisticsDatabaseStorage
- Provides the default database storage backend for statistics.
Namespace
Drupal\statisticsCode
public function fetchView($id) {
$views = $this->fetchViews([
$id,
]);
return reset($views);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.