• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Service/Router.php
  • Класс: Bitrix\Crm\Service\Router
  • Вызов: Router::getAutomationUrlTemplate
public function getAutomationUrlTemplate(int $entityTypeId): ?string
{
	if ($entityTypeId === \CCrmOwnerType::Order)
	{
		return '/shop/orders/automation/0/';
	}
	if ($this->isNewRoutingForAutomationEnabled($entityTypeId))
	{
		return $this->getPreparedTemplates()['bitrix:crm.item.automation'] ?? null;
	}
	$entityName = mb_strtolower(\CCrmOwnerType::ResolveName($entityTypeId));

	return '/crm/' . $entityName . '/automation/#categoryId#/';
}