Drupal 8.0.0 beta 12. More info: https://www.drupal.org/node/2514176
This commit is contained in:
commit
9921556621
13277 changed files with 1459781 additions and 0 deletions
20
core/modules/node/node.views.inc
Normal file
20
core/modules/node/node.views.inc
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Provide views data for node.module.
|
||||
*/
|
||||
|
||||
use Drupal\views\Analyzer;
|
||||
use Drupal\views\ViewExecutable;
|
||||
|
||||
/**
|
||||
* 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');
|
||||
}
|
||||
|
||||
}
|
Reference in a new issue