if (empty($filters)) { return;
} $facet =
$this->variantHelper->
getVariantFacet();
$groups =
[];
if ($facet) { $groups =
$facet->
getExpandGroupIds();
} foreach ($filters as $groupId =>
$filter) { $condition =
new VariantCondition($filter, \
in_array($groupId,
$groups),
$groupId);
$criteria->
addCondition($condition);
} } /**
* Helper function which groups the passed filter option ids
* by the filter group.
* Each filter group is joined as own PropertyCondition to the criteria
* object
*
* @param array $filters
*
* @return array
*/