Comment::$filters

Same name and namespace in other branches
  1. 9 core/modules/comment/src/Plugin/views/wizard/Comment.php \Drupal\comment\Plugin\views\wizard\Comment::filters
  2. 8.9.x core/modules/comment/src/Plugin/views/wizard/Comment.php \Drupal\comment\Plugin\views\wizard\Comment::filters
  3. 11.x core/modules/comment/src/Plugin/views/wizard/Comment.php \Drupal\comment\Plugin\views\wizard\Comment::filters

Set default values for the filters.

Type: filters

Overrides WizardPluginBase::$filters

File

core/modules/comment/src/Plugin/views/wizard/Comment.php, line 33

Class

Comment
Tests creating comment views with the wizard.

Namespace

Drupal\comment\Plugin\views\wizard

Code

protected $filters = [
  'status_node' => [
    'value' => TRUE,
    'table' => 'node_field_data',
    'field' => 'status',
    'plugin_id' => 'boolean',
    'relationship' => 'node',
    'entity_type' => 'node',
    'entity_field' => 'status',
  ],
];

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.