function ArgumentPluginBase::init

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php \Drupal\views\Plugin\views\argument\ArgumentPluginBase::init()
  2. 8.9.x core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php \Drupal\views\Plugin\views\argument\ArgumentPluginBase::init()
  3. 11.x core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php \Drupal\views\Plugin\views\argument\ArgumentPluginBase::init()

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

Overrides HandlerBase::init

5 calls to ArgumentPluginBase::init()
Formula::init in core/modules/views/src/Plugin/views/argument/Formula.php
Overrides Drupal\views\Plugin\views\HandlerBase:init().
ManyToOne::init in core/modules/views/src/Plugin/views/argument/ManyToOne.php
Overrides Drupal\views\Plugin\views\HandlerBase:init().
NumberListField::init in core/modules/options/src/Plugin/views/argument/NumberListField.php
Overrides Drupal\views\Plugin\views\HandlerBase:init().
Search::init in core/modules/search/src/Plugin/views/argument/Search.php
Overrides Drupal\views\Plugin\views\HandlerBase:init().
StringArgument::init in core/modules/views/src/Plugin/views/argument/StringArgument.php
Overrides Drupal\views\Plugin\views\HandlerBase:init().
5 methods override ArgumentPluginBase::init()
Formula::init in core/modules/views/src/Plugin/views/argument/Formula.php
Overrides Drupal\views\Plugin\views\HandlerBase:init().
ManyToOne::init in core/modules/views/src/Plugin/views/argument/ManyToOne.php
Overrides Drupal\views\Plugin\views\HandlerBase:init().
NumberListField::init in core/modules/options/src/Plugin/views/argument/NumberListField.php
Overrides Drupal\views\Plugin\views\HandlerBase:init().
Search::init in core/modules/search/src/Plugin/views/argument/Search.php
Overrides Drupal\views\Plugin\views\HandlerBase:init().
StringArgument::init in core/modules/views/src/Plugin/views/argument/StringArgument.php
Overrides Drupal\views\Plugin\views\HandlerBase:init().

File

core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php, line 137

Class

ArgumentPluginBase
Base class for argument (contextual filter) handler plugins.

Namespace

Drupal\views\Plugin\views\argument

Code

public function init(ViewExecutable $view, DisplayPluginBase $display, ?array &$options = NULL) {
    parent::init($view, $display, $options);
    if (!empty($this->definition['name field'])) {
        $this->name_field = $this->definition['name field'];
    }
    if (!empty($this->definition['name table'])) {
        $this->name_table = $this->definition['name table'];
    }
}

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