NodeComment.php

Definition of Drupal\comment\Plugin\views\filter\NodeComment.

Namespace

Drupal\comment\Plugin\views\filter

File

drupal/core/modules/comment/lib/Drupal/comment/Plugin/views/filter/NodeComment.php
View source
<?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'),
    );
  }

}

Classes

Namesort descending Description
NodeComment Filter based on comment node status.