You are here

public function StatisticsViewsResult::getTotalCount in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/statistics/src/StatisticsViewsResult.php \Drupal\statistics\StatisticsViewsResult::getTotalCount()

Total number of times the entity has been viewed.

Return value

int

File

core/modules/statistics/src/StatisticsViewsResult.php, line 36

Class

StatisticsViewsResult
Value object for passing statistic results.

Namespace

Drupal\statistics

Code

public function getTotalCount() {
  return $this->totalCount;
}