public function FieldPluginBase::query

Called to add the field to a query.

Overrides PluginBase::query

1 call to FieldPluginBase::query()
22 methods override FieldPluginBase::query()

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();
}