You are here

public function FieldPluginBase::query in Views (for Drupal 7) 8.3

Called to add the field to a query.

Overrides PluginBase::query

1 call to FieldPluginBase::query()
HistoryUserTimestamp::query in lib/Views/node/Plugin/views/field/HistoryUserTimestamp.php
Called to add the field to a query.
22 methods override FieldPluginBase::query()
Broken::query in lib/Drupal/views/Plugin/views/field/Broken.php
Called to add the field to a query.
ContextualLinks::query in lib/Drupal/views/Plugin/views/field/ContextualLinks.php
Called to add the field to a query.
Counter::query in lib/Drupal/views/Plugin/views/field/Counter.php
Called to add the field to a query.
Custom::query in lib/Drupal/views/Plugin/views/field/Custom.php
Called to add the field to a query.
Field::query in lib/Views/field/Plugin/views/field/Field.php
Called to add the field to a query.

... See full list

File

lib/Drupal/views/Plugin/views/field/FieldPluginBase.php, line 99
Definition of Drupal\views\Plugin\views\field\FieldPluginBase.

Class

FieldPluginBase
Base field handler that has no options and renders an unformatted field.

Namespace

Drupal\views\Plugin\views\field

Code

public function query() {
  $this
    ->ensureMyTable();

  // Add the field.
  $params = $this->options['group_type'] != 'group' ? array(
    'function' => $this->options['group_type'],
  ) : array();
  $this->field_alias = $this->query
    ->add_field($this->tableAlias, $this->realField, NULL, $params);
  $this
    ->add_additional_fields();
}