- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/Service/Router.php
- Класс: Bitrix\Crm\Service\Router
- Вызов: Router::getChildrenItemsListUrl
public function getChildrenItemsListUrl(int $entityTypeId, int $parentEntityTypeId, int $parentEntityId): ?Uri
{
$factory = Container::getInstance()->getFactory($entityTypeId);
if (!$factory)
{
return null;
}
$componentName = $this->getItemListComponentName($entityTypeId);
if (!$componentName)
{
return null;
}
$componentPath = \CComponentEngine::makeComponentPath($componentName);
$componentPath = getLocalPath('components'.$componentPath.'/lazyload.ajax.php');
$url = new Uri($componentPath);
$url->addParams([
'entityTypeId' => $entityTypeId,
'parentEntityTypeId' => $parentEntityTypeId,
'parentEntityId' => $parentEntityId,
'sessid' => bitrix_sessid(),
'site' => SITE_ID,
]);
return $url;
}