- Модуль: lists
- Путь к файлу: ~/bitrix/modules/lists/lib/copy/implement/iblock.php
- Класс: BitrixListsCopyImplementIblock
- Вызов: Iblock::setUrlTemplate
private function setUrlTemplate(Container $container, int $iblockId, array $fields)
{
$list = new CList($iblockId);
$dictionary = $container->getDictionary();
if (!empty($dictionary["LIST_ELEMENT_URL"]))
{
$listElementUrl = $dictionary["LIST_ELEMENT_URL"];
}
else
{
$listElementUrl = $list->getUrlByIblockId($container->getEntityId());
$listElementUrl = str_replace($container->getEntityId(), $iblockId, $listElementUrl);
}
$socnetGroupId = ($fields["SOCNET_GROUP_ID"] ? $fields["SOCNET_GROUP_ID"] : 0);
$list->actualizeDocumentAdminPage(str_replace(
["#list_id#", "#group_id#"],
[$iblockId, $socnetGroupId],
$listElementUrl
));
}