view_unpublished.views.inc in view_unpublished 8
Provide views data for view_unpublished.module.
File
view_unpublished.views.incView source
<?php
/**
* @file
* Provide views data for view_unpublished.module.
*/
use Drupal\view_unpublished\Plugin\views\filter\NodeStatus;
/**
* Implements hook_views_plugins_filter_alter().
*/
function view_unpublished_views_plugins_filter_alter(array &$plugins) {
// Change the 'status' handler class.
$plugins['node_status']['class'] = NodeStatus::class;
}
Functions
Name | Description |
---|---|
view_unpublished_views_plugins_filter_alter | Implements hook_views_plugins_filter_alter(). |