You are here

NodeComment.php in Views (for Drupal 7) 8.3

File

lib/Views/comment/Plugin/views/filter/NodeComment.php
View 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

Namesort descending Description
NodeComment Filter based on comment node status.