You are here

public function ViewsFieldsOnOffForm::query in Views Fields On/Off 8

Called to add the field to a query.

Overrides FieldPluginBase::query

File

src/Plugin/views/field/ViewsFieldsOnOffForm.php, line 117

Class

ViewsFieldsOnOffForm
Provides a handler that adds the form for Fields On/Off.

Namespace

Drupal\views_fields_on_off\Plugin\views\field

Code

public function query() {

  // This is not a real field and it only affects the query by excluding
  // fields from the display. But Views won't render if the query()
  // method is not present. This doesn't do anything, but it has to be here.
  // This function is a void so it doesn't return anything.
}