• Модуль: catalogmobile
  • Путь к файлу: ~/bitrix/modules/catalogmobile/lib/Controller/StoreDocumentDetails.php
  • Класс: Bitrix\CatalogMobile\Controller\StoreDocumentDetails
  • Вызов: StoreDocumentDetails::loadProductsAction
public function loadProductsAction(int $entityId = null, string $docType = null): array
{
	if (!$this->checkDocumentReadRights($entityId, $docType))
	{
		$this->addError(new Error(Loc::getMessage('MOBILE_CONTROLLER_CATALOG_DETAILS_ERROR_READ_PRODUCTS_PERMS')));

		return [];
	}

	return DocumentProducts\Facade::loadByDocumentId($entityId, $docType);
}