You are here

public function ViewsIfEmpty::query in Views If Empty 8

Called to add the field to a query.

Overrides FieldPluginBase::query

File

src/Plugin/views/field/ViewsIfEmpty.php, line 40
Contains \Drupal\views_ifempty\Plugin\views\field\ViewsIfEmpty.

Class

ViewsIfEmpty
Field handler to output an alternate field when a field is empty.

Namespace

Drupal\views_ifempty\Plugin\views\field

Code

public function query() {
  $this->field_alias = 'views_ifempty_' . $this->position;
}