public function RowPluginBase::query in Drupal 9
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/views/row/RowPluginBase.php \Drupal\views\Plugin\views\row\RowPluginBase::query()
Add anything to the query that we might need to.
Overrides PluginBase::query
2 calls to RowPluginBase::query()
- DataEntityRow::query in core/
modules/ rest/ src/ Plugin/ views/ row/ DataEntityRow.php - Add anything to the query that we might need to.
- EntityRow::query in core/
modules/ views/ src/ Plugin/ views/ row/ EntityRow.php - Add anything to the query that we might need to.
2 methods override RowPluginBase::query()
- DataEntityRow::query in core/
modules/ rest/ src/ Plugin/ views/ row/ DataEntityRow.php - Add anything to the query that we might need to.
- EntityRow::query in core/
modules/ views/ src/ Plugin/ views/ row/ EntityRow.php - Add anything to the query that we might need to.
File
- core/
modules/ views/ src/ Plugin/ views/ row/ RowPluginBase.php, line 136
Class
- RowPluginBase
- Base class for Views row plugins.
Namespace
Drupal\views\Plugin\views\rowCode
public function query() {
if (isset($this->base_table)) {
if (isset($this->options['relationship']) && isset($this->view->relationship[$this->options['relationship']])) {
$relationship = $this->view->relationship[$this->options['relationship']];
$this->field_alias = $this->view->query
->addField($relationship->alias, $this->base_field);
}
else {
$this->field_alias = $this->view->query
->addField($this->base_table, $this->base_field);
}
}
}