ProductGrid::createFilter

  1. Bitrix24 API (v. 23.675.0)
  2. catalog
  3. ProductGrid
  4. createFilter
  • Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/grid/productgrid.php
  • Класс: BitrixCatalogGridProductGrid
  • Вызов: ProductGrid::createFilter
protected function createFilter(): ?Filter
{
	if (!$this->useFilter)
	{
		return null;
	}

	$settings = new BitrixCatalogFilterDataProviderSettingsProductSettings([
		'ID' => $this->getId(),
		'IBLOCK_ID' => $this->getSettings()->getIblockId(),
		'VARIATION_IBLOCK_ID' => $this->getSettings()->getOffersIblockId(),
		'LINK_PROPERTY_ID' => $this->getSettings()->getSkuPropertyId(),
		//'SHOW_SECTIONS' => true,
		//'SHOW_XML_ID' => true,
	]);

	return (new ProductFilterFactory)->createBySettings($settings);
}

Добавить комментарий