You are here

public function Current::init in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/user/src/Plugin/views/filter/Current.php \Drupal\user\Plugin\views\filter\Current::init()

Overrides \Drupal\views\Plugin\views\HandlerBase::init().

Provide some extra help to get the operator/value easier to use.

This likely has to be overridden by filters which are more complex than simple operator/value.

Overrides BooleanOperator::init

File

core/modules/user/src/Plugin/views/filter/Current.php, line 21

Class

Current
Filter handler for the current user.

Namespace

Drupal\user\Plugin\views\filter

Code

public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) {
  parent::init($view, $display, $options);
  $this->value_value = $this
    ->t('Is the logged in user');
}