function ArgumentPluginBase::unpackArgumentValue

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

Splits an argument into value and operator properties on this instance.

Parameters

bool $force_int: Enforce that values should be numeric.

4 calls to ArgumentPluginBase::unpackArgumentValue()
ManyToOne::query in core/modules/views/src/Plugin/views/argument/ManyToOne.php
Set up the query for this argument.
ManyToOne::title in core/modules/views/src/Plugin/views/argument/ManyToOne.php
Get the title this argument will assign the view, given the argument.
StringArgument::query in core/modules/views/src/Plugin/views/argument/StringArgument.php
Build the query based upon the formula.
StringArgument::title in core/modules/views/src/Plugin/views/argument/StringArgument.php
Get the title this argument will assign the view, given the argument.

File

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

Class

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

Namespace

Drupal\views\Plugin\views\argument

Code

protected function unpackArgumentValue($force_int = FALSE) {
    $break = static::breakString($this->argument, $force_int);
    $this->value = $break->value;
    $this->operator = $break->operator;
}

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