function views_plugin_row::query
Overrides views_plugin::query
File
-
plugins/
views_plugin_row.inc, line 120
Class
- views_plugin_row
- Default plugin to view a single row of a table. This is really just a wrapper around a theme function.
Code
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
->add_field($relationship->alias, $this->base_field);
}
else {
$this->field_alias = $this->view->query
->add_field($this->base_table, $this->base_field);
}
}
}