$query =
$builder->
getQuery();
$total =
$this->
get('models'
)->
getQueryCount($query);
$data =
$query->
getArrayResult();
$this->
View()->
assign(['success' => true, 'data' =>
$data, 'total' =>
$total]);
} public function getAvailableHashesAction() { /** @var PasswordEncoderInterface[] $hashes */
$hashes =
Shopware()->
PasswordEncoder()->
getCompatibleEncoders();
$result =
[];
$result[] =
['id' => 'Auto'
];
$blacklist =
['prehashed', 'legacybackendmd5'
];
foreach ($hashes as $hash) { if (\
in_array(strtolower($hash->
getName()),
$blacklist)) { continue;
}