function Sql::getWhereArgs
Same name in other branches
- 9 core/modules/views/src/Plugin/views/query/Sql.php \Drupal\views\Plugin\views\query\Sql::getWhereArgs()
- 10 core/modules/views/src/Plugin/views/query/Sql.php \Drupal\views\Plugin\views\query\Sql::getWhereArgs()
- 11.x core/modules/views/src/Plugin/views/query/Sql.php \Drupal\views\Plugin\views\query\Sql::getWhereArgs()
Get the arguments attached to the WHERE and HAVING clauses of this query.
File
-
core/
modules/ views/ src/ Plugin/ views/ query/ Sql.php, line 1412
Class
- Sql
- Views query plugin for an SQL query.
Namespace
Drupal\views\Plugin\views\queryCode
public function getWhereArgs() {
$args = [];
foreach ($this->where as $where) {
$args = array_merge($args, $where['args']);
}
foreach ($this->having as $having) {
$args = array_merge($args, $having['args']);
}
return $args;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.