You are here

protected property Comment::$filters in Drupal 10

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

Set default values for the filters.

Overrides WizardPluginBase::$filters

File

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

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',
  ],
];