As #1910606: Improve the configurations schemas for Views significantly showed we have to add the used query plugin as part of the configuration.
As #1910606: Improve the configurations schemas for Views significantly showed we have to add the used query plugin as part of the configuration.
Comments
Comment #1
blazey commentedQuery plugin is currently instantiated in Drupal\views\ViewExecutable::initQuery(). This function calls Drupal\views\Plugin\views\display\DisplayPluginBase::getPlugin('query').
So query plugin id is taken from hook_views_data[_alter] information for view base table, with 'views_query' (Drupal\views\Plugin\views\query\Sql) default value.
So now there should be a setting for query type in views ui? If yes, where should it appear?
Comment #2
dawehnerHi Błażej
Ideally this happens somewhere at the API level, as you described. You could here maybe put in something like
$this->storage->set('query_id' => $name);.What do you think about that?
Comment #14
smustgrave commentedClosing as outdated since there hasn't been a followup since moving to PNMI 8 years ago.
Drupal 9 has changed since this ticket so odds are this could be fixed.
if still an issue please reopen with an updated issue summary.