Skip to content

Commit fe391e1

Browse files
committed
feat: Changed QueryPluginBase import to Sql import
1 parent cb67b3b commit fe391e1

File tree

1 file changed

+2
-2
lines changed
  • web/profiles/custom/os2loop/modules/os2loop_user/src/Helper

1 file changed

+2
-2
lines changed

web/profiles/custom/os2loop/modules/os2loop_user/src/Helper/Helper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Drupal\Core\Form\FormStateInterface;
66
use Drupal\Core\Session\AccountInterface;
77
use Drupal\views\ViewExecutable;
8-
use Drupal\views\Plugin\views\query\QueryPluginBase;
8+
use Drupal\views\Plugin\views\query\Sql;
99

1010
/**
1111
* The Helper class.
@@ -31,7 +31,7 @@ public function __construct(AccountInterface $currentUser) {
3131
* Change the order of the tables in a LEFT JOIN to preserve NULLs from
3232
* content type.
3333
*/
34-
public function queryAlter(ViewExecutable $view, QueryPluginBase $query) {
34+
public function queryAlter(ViewExecutable $view, Sql $query) {
3535
if ($view->id() === 'os2loop_user_answers') {
3636
$node_table = $query->getTableInfo('node_field_data_comment_field_data');
3737

0 commit comments

Comments
 (0)