NodeComment.php in Views (for Drupal 7) 8.3
Definition of Views\comment\Plugin\views\filter\NodeComment.
Namespace
Views\comment\Plugin\views\filterFile
lib/Views/comment/Plugin/views/filter/NodeComment.phpView source
<?php
/**
* @file
* Definition of Views\comment\Plugin\views\filter\NodeComment.
*/
namespace Views\comment\Plugin\views\filter;
use Drupal\views\Plugin\views\filter\InOperator;
use Drupal\Core\Annotation\Plugin;
/**
* Filter based on comment node status.
*
* @ingroup views_filter_handlers
*
* @Plugin(
* id = "node_comment",
* module = "comment"
* )
*/
class NodeComment extends InOperator {
function get_value_options() {
$this->value_options = array(
COMMENT_NODE_HIDDEN => t('Hidden'),
COMMENT_NODE_CLOSED => t('Closed'),
COMMENT_NODE_OPEN => t('Open'),
);
}
}
Classes
Name | Description |
---|---|
NodeComment | Filter based on comment node status. |