NodeComment.php in Drupal 9
File
core/modules/comment/src/Plugin/views/filter/NodeComment.php
View source
<?php
namespace Drupal\comment\Plugin\views\filter;
use Drupal\comment\Plugin\Field\FieldType\CommentItemInterface;
use Drupal\views\Plugin\views\filter\InOperator;
class NodeComment extends InOperator {
public function getValueOptions() {
$this->valueOptions = [
CommentItemInterface::HIDDEN => $this
->t('Hidden'),
CommentItemInterface::CLOSED => $this
->t('Closed'),
CommentItemInterface::OPEN => $this
->t('Open'),
];
return $this->valueOptions;
}
}