public function Sql::getWhereArgs in Drupal 9
Same name and namespace in other branches
- 8 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 1418
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;
}