function NodeComment::getValueOptions
Same name in other branches
- 9 core/modules/comment/src/Plugin/views/filter/NodeComment.php \Drupal\comment\Plugin\views\filter\NodeComment::getValueOptions()
- 10 core/modules/comment/src/Plugin/views/filter/NodeComment.php \Drupal\comment\Plugin\views\filter\NodeComment::getValueOptions()
- 11.x core/modules/comment/src/Plugin/views/filter/NodeComment.php \Drupal\comment\Plugin\views\filter\NodeComment::getValueOptions()
Overrides InOperator::getValueOptions
File
-
core/
modules/ comment/ src/ Plugin/ views/ filter/ NodeComment.php, line 17
Class
- NodeComment
- Filter based on comment node status.
Namespace
Drupal\comment\Plugin\views\filterCode
public function getValueOptions() {
$this->valueOptions = [
CommentItemInterface::HIDDEN => $this->t('Hidden'),
CommentItemInterface::CLOSED => $this->t('Closed'),
CommentItemInterface::OPEN => $this->t('Open'),
];
return $this->valueOptions;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.