function ArgumentPluginBase::unpackArgumentValue
Same name in other branches
- 9 core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php \Drupal\views\Plugin\views\argument\ArgumentPluginBase::unpackArgumentValue()
- 8.9.x core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php \Drupal\views\Plugin\views\argument\ArgumentPluginBase::unpackArgumentValue()
- 10 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 - ManyToOne::title in core/
modules/ views/ src/ Plugin/ views/ argument/ ManyToOne.php - 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
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\argumentCode
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.