• Модуль: crmmobile
  • Путь к файлу: ~/bitrix/modules/crmmobile/lib/ProductGrid/ProductGridQuery.php
  • Класс: BitrixCrmMobileProductGridProductGridQuery
  • Вызов: ProductGridQuery::fetchItems
private function fetchItems(): array
{
	$items = array_map(
		fn ($row) => new ProductRowViewModel($row, $this->entity->getCurrencyId()),
		$this->getEntityProductRows()
	);

	$enrichers = $this->getEnrichers();
	/** @var EnricherContract[] $enrichers */
	foreach ($enrichers as $enricher)
	{
		$items = $enricher->enrich($items);
	}

	return array_map(static fn ($item) => $item->toArray(), $items);
}