Skip to content
Snippets Groups Projects

Drupal 10 Fixes

Files
4
@@ -57,6 +57,7 @@ class UserSwitchController extends ControllerBase {
// For the pagination we need to extend the pagerselectextender and
// limit in the query.
$query->condition('uid', $_uid, '!=');
$query->accessCheck(FALSE);
$pager = $query->extend('Drupal\Core\Database\Query\PagerSelectExtender')->limit(10);
$results = $pager->execute()->fetchAll();
Loading