• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/activity/entity/todo.php
  • Класс: Bitrix\Crm\Activity\Entity\ToDo
  • Вызов: ToDo::getDescriptionForEntityType
static function getDescriptionForEntityType(int $entityTypeId): string
{
	$defaultDescription = Loc::getMessage('CRM_TODO_ENTITY_ACTIVITY_DESCRIPTION_CONTACT_CLIENT') ?? '';
	if ($entityTypeId === \CCrmOwnerType::Undefined)
	{
		return $defaultDescription;
	}

	$entityType = \CCrmOwnerType::ResolveName($entityTypeId);

	return (
		Loc::getMessage('CRM_TODO_ENTITY_ACTIVITY_DESCRIPTION_CONTACT_CLIENT_IN_' . $entityType) ?? $defaultDescription
	);
}