public function DateRecurFieldSimpleRender::query in Recurring Dates Field 8
Called to add the field to a query.
By default, all needed data is taken from entities loaded by the query plugin. Columns are added only if they are used in groupings.
Overrides EntityField::query
File
- src/
Plugin/ views/ field/ DateRecurFieldSimpleRender.php, line 45
Class
- DateRecurFieldSimpleRender
- A handler to provide a field that is completely custom by the administrator.
Namespace
Drupal\date_recur\Plugin\views\fieldCode
public function query($use_groupby = FALSE) {
$this
->ensureMyTable();
// Add the field.
$params = $this->options['group_type'] != 'group' ? [
'function' => $this->options['group_type'],
] : [];
$this->field_alias = $this->query
->addField($this->tableAlias, $this->realField, NULL, $params);
$this
->addAdditionalFields();
}