public function FilterPluginBase::query in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/views/filter/FilterPluginBase.php \Drupal\views\Plugin\views\filter\FilterPluginBase::query()
- 9 core/modules/views/src/Plugin/views/filter/FilterPluginBase.php \Drupal\views\Plugin\views\filter\FilterPluginBase::query()
Add this filter to the query.
Due to the nature of fapi, the value and the operator have an unintended level of indirection. You will find them in $this->operator and $this->value respectively.
10 methods override FilterPluginBase::query()
- Access::query in core/
modules/ node/ src/ Plugin/ views/ filter/ Access.php - See _node_access_where_sql() for a non-views query based implementation.
- HistoryUserTimestamp::query in core/
modules/ history/ src/ Plugin/ views/ filter/ HistoryUserTimestamp.php - Add this filter to the query.
- InOperator::query in core/
modules/ views/ src/ Plugin/ views/ filter/ InOperator.php - Add this filter to the query.
- LatestRevision::query in core/
modules/ views/ src/ Plugin/ views/ filter/ LatestRevision.php - Add this filter to the query.
- LatestTranslationAffectedRevision::query in core/
modules/ views/ src/ Plugin/ views/ filter/ LatestTranslationAffectedRevision.php - Add this filter to the query.
File
- core/
modules/ views/ src/ Plugin/ views/ filter/ FilterPluginBase.php, line 1603
Class
- FilterPluginBase
- Base class for Views filters handler plugins.
Namespace
Drupal\views\Plugin\views\filterCode
public function query() {
$this
->ensureMyTable();
$this->query
->addWhere($this->options['group'], "{$this->tableAlias}.{$this->realField}", $this->value, $this->operator);
}