You are here

node.views.inc in Zircon Profile 8.0

Same filename and directory in other branches
  1. 8 core/modules/node/node.views.inc

Provide views data for node.module.

File

core/modules/node/node.views.inc
View source
<?php

/**
 * @file
 * Provide views data for node.module.
 */

/**
 * Implements hook_views_wizard().
 */
function node_views_wizard() {

  // @todo: figure this piece out.
  if (\Drupal::moduleHandler()
    ->moduleExists('statistics')) {
    $plugins['node']['available_sorts']['node_counter-totalcount:DESC'] = t('Number of hits');
  }
}

Functions

Namesort descending Description
node_views_wizard Implements hook_views_wizard().