- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/kanban.php
- Класс: Bitrix\Crm\Kanban
- Вызов: Kanban::getEntityPath
protected function getEntityPath(string $type, array $params = []): ?string
{
$pathKey = 'PATH_TO_' . $type . '_DETAILS';
$url = (
!array_key_exists($pathKey, $params)
? \CrmCheckPath($pathKey, '', '')
: $params[$pathKey]
);
if ($url === '' || !\CCrmOwnerType::IsSliderEnabled(\CCrmOwnerType::ResolveID($type)))
{
$pathKey = 'PATH_TO_' . $type . '_SHOW';
$url = !array_key_exists($pathKey, $params) ? \CrmCheckPath($pathKey, '', '') : $params[$pathKey];
}
if (!$url)
{
$url = $this->entity->getUrlTemplate();
}
return $url;
}