status-report.html.twig

Default theme implementation for the status report. Available variables: requirements: Contains multiple requirement instances. Each requirement contains: title: The title of the requirement. value: (optional) The requirement's status. description: (optional) The requirement's description. severity_title: The title of the severity. severity_status: Indicates the severity status. See also template_preprocess_status_report() File core/modules/system/templates/status-report.html.twig

statistics_get

statistics_get($nid) Retrieves a node's "view statistics". Parameters int $nid: The node ID. Return value array An associative array containing: totalcount: Integer for the total number of times the node has been viewed. daycount: Integer for the total number of times the node has been viewed "today". For the daycount to be reset, cron must be enabled. timestamp: Integer for the timestamp of when the node was last viewed. File core/modules/statistics/statistics.module, line 141 Logs and

statistics_help

statistics_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/statistics/statistics.module, line 17 Logs and displays content statistics for a site. Code function statistics_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.statistics': $output = ''; $output .= '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t('The Statistics module shows you how often content is v

statistics_node_predelete

statistics_node_predelete(EntityInterface $node) Implements hook_ENTITY_TYPE_predelete() for node entities. File core/modules/statistics/statistics.module, line 152 Logs and displays content statistics for a site. Code function statistics_node_predelete(EntityInterface $node) { // Clean up statistics table when node is deleted. db_delete('node_counter') ->condition('nid', $node->id()) ->execute(); }

statistics_node_links_alter

statistics_node_links_alter(array &$links, NodeInterface $entity, array &$context) Implements hook_node_links_alter(). File core/modules/statistics/statistics.module, line 51 Logs and displays content statistics for a site. Code function statistics_node_links_alter(array &$links, NodeInterface $entity, array &$context) { if ($context['view_mode'] != 'rss') { $links['#cache']['contexts'][] = 'user.permissions'; if (\Drupal::currentUser()->hasPermission('view post a

statistics_node_view

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) &&

statistics_cron

statistics_cron() Implements hook_cron(). File core/modules/statistics/statistics.module, line 72 Logs and displays content statistics for a site. Code function statistics_cron() { $statistics_timestamp = \Drupal::state()->get('statistics.day_timestamp') ? : 0; if ((REQUEST_TIME - $statistics_timestamp) >= 86400) { // Reset day counts. db_update('node_counter') ->fields(array('daycount' => 0)) ->execute(); \Drupal::state()->set('statistics.day_ti

statistics.tokens.inc

Builds placeholder replacement tokens for node visitor statistics. File core/modules/statistics/statistics.tokens.inc Functions Name Description statistics_tokens Implements hook_tokens(). statistics_token_info Implements hook_token_info().

statistics.module

Logs and displays content statistics for a site. File core/modules/statistics/statistics.module Functions Name Description statistics_block_alter Implements hook_block_alter(). statistics_cron Implements hook_cron(). statistics_get Retrieves a node's "view statistics". statistics_help Implements hook_help(). statistics_node_links_alter Implements hook_node_links_alter(). statistics_node_predelete Implements hook_ENTITY_TYPE_predelete() for node entities. statisti

statistics_block_alter

statistics_block_alter(&$definitions) Implements hook_block_alter(). Removes the "popular" block from display if the module is not configured to count content views. File core/modules/statistics/statistics.module, line 201 Logs and displays content statistics for a site. Code function statistics_block_alter(&$definitions) { $statistics_count_content_views = \Drupal::config('statistics.settings')->get('count_content_views'); if (empty($statistics_count_content_views)) { unse