diff --git a/core/modules/statistics/src/StatisticsViewsResult.php b/core/modules/statistics/src/StatisticsViewsResult.php index 3dd7592..666acc4 100644 --- a/core/modules/statistics/src/StatisticsViewsResult.php +++ b/core/modules/statistics/src/StatisticsViewsResult.php @@ -29,21 +29,29 @@ public function __construct($total_count, $day_count, $timestamp) { } /** - * {@inheritdoc} + * Total number of times the entity has been viewed. + * + * @return int */ public function getTotalCount() { return $this->totalCount; } + /** - * {@inheritdoc} + * Total number of times the entity has been viewed "today". + * + * @return int */ public function getDayCount() { return $this->dayCount; } + /** - * {@inheritdoc} + * Timestamp of when the entity was last viewed. + * + * @return int */ public function getTimestamp() { return $this->timestamp; diff --git a/core/modules/statistics/src/Tests/StatisticsReportsTest.php b/core/modules/statistics/src/Tests/StatisticsReportsTest.php index 0fe2e28..adf5bbf 100644 --- a/core/modules/statistics/src/Tests/StatisticsReportsTest.php +++ b/core/modules/statistics/src/Tests/StatisticsReportsTest.php @@ -51,7 +51,7 @@ function testPopularContentBlock() { $tags = Cache::mergeTags($node->getCacheTags(), $block->getCacheTags()); $tags = Cache::mergeTags($tags, $this->blockingUser->getCacheTags()); - $tags = Cache::mergeTags($tags, ['block_view', 'config:block_list', 'node_list', 'rendered', 'user_view']); + $tags = Cache::mergeTags($tags, ['block_view', 'config:block_list', 'rendered', 'user_view']); $this->assertCacheTags($tags); $contexts = Cache::mergeContexts($node->getCacheContexts(), $block->getCacheContexts()); $contexts = Cache::mergeContexts($contexts, ['url.query_args:_wrapper_format']);