Same name and namespace in other branches
- 8.9.x core/modules/comment/src/Plugin/views/filter/NodeComment.php \Drupal\comment\Plugin\views\filter\NodeComment
- 9 core/modules/comment/src/Plugin/views/filter/NodeComment.php \Drupal\comment\Plugin\views\filter\NodeComment
Hierarchy
- class \Drupal\views\Plugin\views\filter\InOperator extends \Drupal\views\Plugin\views\filter\FilterPluginBase implements FilterOperatorsInterface
- class \Drupal\comment\Plugin\views\filter\NodeComment
Expanded class hierarchy of NodeComment
File
- core/
modules/ comment/ src/ Plugin/ views/ filter/ NodeComment.php, line 15
Namespace
Drupal\comment\Plugin\views\filterView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
InOperator:: |
protected | property | 2 | |
InOperator:: |
protected | property | Stores all operations which are available on the form. | |
InOperator:: |
protected | property | The filter title. | |
InOperator:: |
public | function | 1 | |
InOperator:: |
public | function | 1 | |
InOperator:: |
public | function | 1 | |
InOperator:: |
public | function | ||
InOperator:: |
protected | function | 1 | |
InOperator:: |
public | function | 1 | |
InOperator:: |
protected | function | ||
InOperator:: |
public | function | Build strings from the operators() for 'select' options. | 1 |
InOperator:: |
public | function |
Returns an array of operator information, keyed by operator ID. Overrides FilterOperatorsInterface:: |
1 |
InOperator:: |
protected | function | ||
InOperator:: |
protected | function | 1 | |
InOperator:: |
public | function | 2 | |
InOperator:: |
public | function | When using exposed filters, we may be required to reduce the set. | |
InOperator:: |
public | function | ||
InOperator:: |
protected | function | 2 | |
InOperator:: |
protected | function | 1 | |
NodeComment:: |
public | function |
Gets the value options. Overrides InOperator:: |