public static function getElementsWithProperties($arFilter, $arOrder, $arPropsFilter = [])
{
$elements = [];
$rows = CIBlockElement::GetList($arOrder, $arFilter);
while ($row = $rows->fetch()) {
$row['PROPERTIES'] = [];
$elements[$row['ID']] = $row;
}
CIBlockElement::GetPropertyValuesArray($elements, $arFilter['IBLOCK_ID'], $arFilter, $arPropsFilter);
return $elements;
}