public function FieldPluginBase::query

Called to add the field to a query.

Overrides PluginBase::query

1 call to FieldPluginBase::query()
HistoryUserTimestamp::query in drupal/core/modules/history/lib/Drupal/history/Plugin/views/field/HistoryUserTimestamp.php
Called to add the field to a query.
22 methods override FieldPluginBase::query()
Broken::query in drupal/core/modules/views/lib/Drupal/views/Plugin/views/field/Broken.php
Called to add the field to a query.
BulkFormBase::query in drupal/core/modules/system/lib/Drupal/system/Plugin/views/field/BulkFormBase.php
Overrides \Drupal\views\Plugin\views\Plugin\field\FieldPluginBase::query().
ContextualLinks::query in drupal/core/modules/contextual/lib/Drupal/contextual/Plugin/views/field/ContextualLinks.php
Called to add the field to a query.
Counter::query in drupal/core/modules/views/lib/Drupal/views/Plugin/views/field/Counter.php
Called to add the field to a query.
Custom::query in drupal/core/modules/views/lib/Drupal/views/Plugin/views/field/Custom.php
Called to add the field to a query.

... See full list

File

drupal/core/modules/views/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
    ->addField($this->tableAlias, $this->realField, NULL, $params);
  $this
    ->addAdditionalFields();
}