Same name and namespace in other branches
  1. 8.9.x core/modules/comment/src/Plugin/views/filter/NodeComment.php \Drupal\comment\Plugin\views\filter\NodeComment
  2. 9 core/modules/comment/src/Plugin/views/filter/NodeComment.php \Drupal\comment\Plugin\views\filter\NodeComment

Hierarchy

Expanded class hierarchy of NodeComment

File

core/modules/comment/src/Plugin/views/filter/NodeComment.php, line 15

Namespace

Drupal\comment\Plugin\views\filter
View source
class NodeComment extends InOperator {

  /**
   * {@inheritdoc}
   */
  public function getValueOptions() {
    if (!isset($this->valueOptions)) {
      $this->valueOptions = [
        CommentItemInterface::HIDDEN => $this
          ->t('Hidden'),
        CommentItemInterface::CLOSED => $this
          ->t('Closed'),
        CommentItemInterface::OPEN => $this
          ->t('Open'),
      ];
    }
    return $this->valueOptions;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
InOperator::$valueFormType protected property 2
InOperator::$valueOptions protected property Stores all operations which are available on the form.
InOperator::$valueTitle protected property The filter title.
InOperator::acceptExposedInput public function 1
InOperator::adminSummary public function 1
InOperator::buildExposeForm public function 1
InOperator::defaultExposeOptions public function
InOperator::defineOptions protected function 1
InOperator::init public function 1
InOperator::opEmpty protected function
InOperator::operatorOptions public function Build strings from the operators() for 'select' options. 1
InOperator::operators public function Returns an array of operator information, keyed by operator ID. Overrides FilterOperatorsInterface::operators 1
InOperator::operatorValues protected function
InOperator::opSimple protected function 1
InOperator::query public function 2
InOperator::reduceValueOptions public function When using exposed filters, we may be required to reduce the set.
InOperator::validate public function
InOperator::valueForm protected function 2
InOperator::valueSubmit protected function 1
NodeComment::getValueOptions public function Gets the value options. Overrides InOperator::getValueOptions