protected function Sql::setDistinct 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::setDistinct()
Set the view to be distinct (per base field).
Parameters
bool $value: Should the view be distincted.
1 call to Sql::setDistinct()
- Sql::build in core/
modules/ views/ src/ Plugin/ views/ query/ Sql.php - Builds the necessary info to execute the query.
File
- core/
modules/ views/ src/ Plugin/ views/ query/ Sql.php, line 242
Class
- Sql
- Views query plugin for an SQL query.
Namespace
Drupal\views\Plugin\views\queryCode
protected function setDistinct($value = TRUE) {
if (!(isset($this->noDistinct) && $value)) {
$this->distinct = $value;
}
}