Problem/Motivation
This is hardcoded in FieldPluginBase, which is used for standard
// 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);
We need \Drupal\views_remote_data\Plugin\views\query\RemoteDataQuery::addField to support a null alias since it's hardcoded for this plugin.
public function addField(string $table, string $field, string $alias = '', array $params = []): string {
return $field;
}
Steps to reproduce
Use a standard plugin:
$data['foobar']['filename'] = [
'title' => t('Filename'),
'help' => t('The filename'),
'field' => [
'id' => 'standard',
],
];
Proposed resolution
Use ?string = ''
Issue fork views_remote_data-3278393
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
mglamanComment #5
mglaman