• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Service/Router.php
  • Класс: Bitrix\Crm\Service\Router
  • Вызов: Router::getKanbanUrlWithOldRouting
protected function getKanbanUrlWithOldRouting(int $entityTypeId, int $categoryId = null): ?Uri
{
	if ($entityTypeId === \CCrmOwnerType::DealCategory)
	{
		return null;
	}

	if ($entityTypeId === \CCrmOwnerType::Deal)
	{
		$template = Option::get(self::MODULE_ID, 'path_to_deal_category_kanban');

		return new Uri(\CComponentEngine::makePathFromTemplate($template, ['category_id' => $categoryId ?? 0]));
	}

	$entityName = mb_strtolower(\CCrmOwnerType::ResolveName($entityTypeId));
	$template = Option::get(static::MODULE_ID, "path_to_{$entityName}_kanban");
	if (empty($template))
	{
		return null;
	}

	return new Uri(\CComponentEngine::makePathFromTemplate($template));
}