• Модуль: translate
  • Путь к файлу: ~/bitrix/modules/translate/lib/index/pathindexcollection.php
  • Класс: BitrixTranslateIndexPathIndexCollection
  • Вызов: PathIndexCollection::arrangeTree
public function arrangeTree(): self
{
	$pathList = IndexInternalsPathIndexTable::getList([
		'filter' => [
			'=PARENT_ID' => 0,
			'=IS_DIR' => 'Y',
		],
		'select' => ['ID'],
	]);

	while ($path = $pathList->fetch())
	{
		IndexInternalsPathIndexTable::arrangeTree($path['ID']);
	}

	return $this;
}