Changes for src/Plugin/views/query/SearchApiQuery.php: 33 added lines, 0 removed lines.
Original line number
Diff line number
Diff line
@@ -369,6 +369,9 @@ class SearchApiQuery extends QueryPluginBase {
'preserve_facet_query_args'=>[
'default'=>FALSE,
],
'query_tags'=>[
'default'=>[],
],
];
}
@@ -408,6 +411,29 @@ class SearchApiQuery extends QueryPluginBase {
'#value'=>FALSE,
];
}
$form['query_tags']=[
'#type'=>'textfield',
'#title'=>$this->t('Query Tags'),
'#description'=>$this->t('If set, these tags will be appended to the query and can be used to identify the query in a module. This can be helpful for altering queries.'),