function QueryPluginBase::alter
Same name in other branches
- 8.9.x core/modules/views/src/Plugin/views/query/QueryPluginBase.php \Drupal\views\Plugin\views\query\QueryPluginBase::alter()
- 10 core/modules/views/src/Plugin/views/query/QueryPluginBase.php \Drupal\views\Plugin\views\query\QueryPluginBase::alter()
- 11.x core/modules/views/src/Plugin/views/query/QueryPluginBase.php \Drupal\views\Plugin\views\query\QueryPluginBase::alter()
Let modules modify the query just prior to finalizing it.
Parameters
\Drupal\views\ViewExecutable $view: The view which is executed.
1 method overrides QueryPluginBase::alter()
- Sql::alter in core/
modules/ views/ src/ Plugin/ views/ query/ Sql.php - Let modules modify the query just prior to finalizing it.
File
-
core/
modules/ views/ src/ Plugin/ views/ query/ QueryPluginBase.php, line 71
Class
- QueryPluginBase
- Base plugin class for Views queries.
Namespace
Drupal\views\Plugin\views\queryCode
public function alter(ViewExecutable $view) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.