public function String::init

Overrides \Drupal\views\Plugin\views\argument\ArgumentPluginBase::init().

Overrides ArgumentPluginBase::init

1 call to String::init()
1 method overrides String::init()

File

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

Class

String
Basic argument handler to implement string arguments that may have length limits.

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['many to one'])) {
    $this->helper = new ManyToOneHelper($this);

    // Ensure defaults for these, during summaries and stuff:
    $this->operator = 'or';
    $this->value = array();
  }
}