function Sql::clear_fields in Views (for Drupal 7) 8.3
Remove all fields that may've been added; primarily used for summary mode where we're changing the query because we didn't get data we needed.
File
- lib/
Drupal/ views/ Plugin/ views/ query/ Sql.php, line 796 - Definition of Drupal\views\Plugin\views\query\Sql.
Class
- Sql
- @todo.
Namespace
Drupal\views\Plugin\views\queryCode
function clear_fields() {
$this->fields = array();
}