• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/integration/bitrix24/feedbackcollector.php
  • Класс: BitrixTasksIntegrationBitrix24FeedbackCollector
  • Вызов: FeedbackCollector::onFeedbackCollectorCheckCanRun
static function onFeedbackCollectorCheckCanRun(Event $event): EventResult
{
	$canRun = false;

	$feedbackId = $event->getParameter('feedbackId');
	$userId = $event->getParameter('userId');

	if ($feedbackId === 'tasksFeedbackSliderClose')
	{
		$canRun = static::checkCanRunFeedbackOnSliderClose($userId);
	}

	return new EventResult(EventResult::SUCCESS, ['canRun' => $canRun], 'tasks');
}