return $this->connection->
createQueryBuilder() ->
select(['plugin.name', 'plugin.version'
]) ->
from('s_core_plugins', 'plugin'
) ->
where('plugin.capability_update = 1'
) ->
execute() ->
fetchAll(PDO::FETCH_KEY_PAIR
);
} private function addSortings(ListingRequest
$context, QueryBuilder
$builder): void
{ foreach ($context->
getSortings() as $sort) { if (!
isset($sort['property'
])) { continue;
} $sortDirection =
$sort['direction'
] ?? 'ASC';
$builder->
addOrderBy($sort['property'
],
$sortDirection);
} } /**
* @param array<string, mixed> $plugins
*
* @return PluginStruct[]
*/