public function ArgumentValidatorPluginBase::init

Initialize this plugin with the view and the argument it is linked to.

1 call to ArgumentValidatorPluginBase::init()
Term::init in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/argument_validator/Term.php
Initialize this plugin with the view and the argument it is linked to.
1 method overrides ArgumentValidatorPluginBase::init()
Term::init in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/argument_validator/Term.php
Initialize this plugin with the view and the argument it is linked to.

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/argument_validator/ArgumentValidatorPluginBase.php, line 28
Definition of Drupal\views\Plugin\views\argument_validator\ArgumentValidatorPluginBase.

Class

ArgumentValidatorPluginBase
Base argument validator plugin to provide basic functionality.

Namespace

Drupal\views\Plugin\views\argument_validator

Code

public function init(ViewExecutable $view, &$argument, $options) {
  $this
    ->setOptionDefaults($this->options, $this
    ->defineOptions());
  $this->view =& $view;
  $this->argument =& $argument;
  $this
    ->unpackOptions($this->options, $options);
}