• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/internals/counter/counterstate.php
  • Класс: BitrixTasksInternalsCounterCounterState
  • Вызов: CounterState::getItemSubType
private function getItemSubType(string $type): string
{
	if (in_array($type, CounterDictionary::MAP_EXPIRED))
	{
		return CounterDictionary::COUNTER_EXPIRED;
	}

	if (in_array($type, CounterDictionary::MAP_MUTED_EXPIRED))
	{
		return CounterDictionary::COUNTER_MUTED_EXPIRED;
	}

	if (in_array($type, CounterDictionary::MAP_COMMENTS))
	{
		return CounterDictionary::COUNTER_NEW_COMMENTS;
	}

	if (in_array($type, CounterDictionary::MAP_MUTED_COMMENTS))
	{
		return CounterDictionary::COUNTER_MUTED_NEW_COMMENTS;
	}

	return $type;
}