• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/control/tag.php
  • Класс: BitrixTasksControlTag
  • Вызов: Tag::getByIdByUser
public function getByIdByUser(int $tagId): string
{
	$this->cacheUserTags();
	$tags = self::$storage[self::USER_TAGS_CACHE];
	foreach ($tags as $tag)
	{
		if ((int)$tag['ID'] === $tagId)
		{
			return $tag['NAME'];
		}
	}

	return '';
}