You are here

public function ArgumentPluginBase::init in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 84
Contains \Drupal\views\Plugin\views\argument\ArgumentPluginBase.

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'];
  }
}