Users::$filters

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

Set default values for the filters.

Type: filters

Overrides WizardPluginBase::$filters

File

core/modules/user/src/Plugin/views/wizard/Users.php, line 33

Class

Users
Tests creating user views with the wizard.

Namespace

Drupal\user\Plugin\views\wizard

Code

protected $filters = [
    'status' => [
        'value' => TRUE,
        'table' => 'users_field_data',
        'field' => 'status',
        'plugin_id' => 'boolean',
        'entity_type' => 'user',
        'entity_field' => 'status',
    ],
];

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