• Модуль: crmmobile
  • Путь к файлу: ~/bitrix/modules/crmmobile/lib/UI/EntityEditor/ProviderDecorator.php
  • Класс: Bitrix\CrmMobile\UI\EntityEditor\ProviderDecorator
  • Вызов: ProviderDecorator::prepareProductListController
private function prepareProductListController(array $controller): array
{
	$config = $controller['config'] ?? [];

	$config['priceFieldName'] = $this->getPriceFieldName();
	$config['currencyFieldName'] = $this->getCurrencyFieldName();

	$config['priceWithCurrencyFieldName'] =
		isset($config['priceFieldName'], $config['currencyFieldName'])
			? EditorAdapter::FIELD_OPPORTUNITY
			: null;

	$config['productSummaryFieldName'] =
		$this->factory->isLinkWithProductsEnabled()
			? EditorAdapter::FIELD_PRODUCT_ROW_SUMMARY
			: null;

	return array_merge($controller, ['config' => $config]);
}