statistics_node_view(array &$build, EntityInterface $node, EntityViewDisplayInterface $display, $view_mode)
Implements hook_ENTITY_TYPE_view() for node entities.
File
core/modules/statistics/statistics.module, line 40 Logs and displays content statistics for a site.
Code
function statistics_node_view(array &$build, EntityInterface $node, EntityViewDisplayInterface $display, $view_mode) {
if (!$node->isNew() && $view_mode == 'full' && node_is_page($node) &&