• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/timeline/timelineentry.php
  • Класс: Bitrix\Crm\Timeline\TimelineEntry
  • Вызов: TimelineEntry::fetchEntityTypeId
static function fetchEntityTypeId(array $params): int
{
	$entityTypeId = $params['ENTITY_TYPE_ID'] ?? 0;
	if ($entityTypeId <= 0)
	{
		throw new ArgumentException('Entity type ID must be greater than zero.', 'entityTypeID');
	}

	return (int)$entityTypeId;
}