• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/v2/Integration/UI/EntitySelector/VariationProvider.php
  • Класс: BitrixCatalogv2IntegrationUIEntitySelectorVariationProvider
  • Вызов: VariationProvider::getProducts
protected function getProducts(array $parameters = []): array
{
	$iblockInfo = $this->getIblockInfo();
	if (!$iblockInfo)
	{
		return [];
	}

	$filter = $this->getDefaultFilter();
	$filter['IBLOCK_ID'] = $iblockInfo->getSkuIblockId();

	$additionalFilter = $parameters['filter'];

	$filter = array_merge($filter, $additionalFilter);

	$offers = $this->loadElements([
		'filter' => $filter,
		'limit' => self::PRODUCT_LIMIT,
	]);
	$offers = $this->loadProperties($offers, $iblockInfo->getSkuIblockId(), $iblockInfo);

	$offers = $this->loadPrices($offers);

	if (isset($parameters['searchString']))
	{
		$offers = $this->loadBarcodes($offers, $parameters['searchString']);
	}

	return $offers;
}