You are here

protected function ArgumentPluginBase::unpackArgumentValue 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::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 1239
Contains \Drupal\views\Plugin\views\argument\ArgumentPluginBase.

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