public function Current::init in Zircon Profile 8.0
Same name and namespace in other branches
- 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 26 - Contains \Drupal\user\Plugin\views\filter\Current.
Class
- Current
- Filter handler for the current user.
Namespace
Drupal\user\Plugin\views\filterCode
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');
}