You are here

public function ViewsConditionalField::query in Views Conditional 8

Called to add the field to a query.

Overrides FieldPluginBase::query

File

src/Plugin/views/field/ViewsConditionalField.php, line 55

Class

ViewsConditionalField
Field handler to flag the node type.

Namespace

Drupal\views_conditional\Plugin\views\field

Code

public function query() {

  // Leave empty to avoid a query on this field.
  $this->field_alias = 'views_conditional_' . $this->position;
}