• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/component/entitylist/gridid.php
  • Класс: Bitrix\Crm\Component\EntityList\GridId
  • Вызов: GridId::getDefaultSuffix
public function getDefaultSuffix(int $categoryId): string
{
	if ($this->entityTypeId === \CCrmOwnerType::Deal)
	{
		return $categoryId >= 0 ? "C_{$categoryId}" : '';
	}

	if ($this->entityTypeId === \CCrmOwnerType::Contact || $this->entityTypeId === \CCrmOwnerType::Company)
	{
		return $categoryId > 0 ? "C_{$categoryId}" : '';
	}

	if (\CCrmOwnerType::isUseDynamicTypeBasedApproach($this->entityTypeId))
	{
		return $categoryId > 0 ? (string)$categoryId : '';
	}

	return '';
}