Definition of Drupal\comment\Plugin\views\filter\NodeComment.
<?php
/**
* @file
* Definition of Drupal\comment\Plugin\views\filter\NodeComment.
*/
namespace Drupal\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'),
);
}
}
Name | Description |
---|---|
NodeComment | Filter based on comment node status. |