• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/pullmanager.php
  • Класс: Bitrix\Crm\Integration\PullManager
  • Вызов: PullManager::isPullChannelActiveByTag
static function isPullChannelActiveByTag(string $tag): bool
{
	if (Loader::includeModule('pull'))
	{
		$query = \Bitrix\Pull\Model\WatchTable::query();
		$query
			->addSelect('ID')
			->where('TAG', $tag)
			->setLimit(1)
		;

		return !!$query->fetch();
	}

	return false;
}