You are here

function node_views_wizard in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/node/node.views.inc \node_views_wizard()

Implements hook_views_wizard().

File

core/modules/node/node.views.inc, line 11
Provide views data for node.module.

Code

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');
  }
}