function ArgumentPluginBase::unpackArgumentValue

Same name and namespace in other branches
  1. 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.

File

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

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.