• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/userconsent/internals/componentcontroller.php
  • Класс: BitrixMainUserConsentInternalsComponentController
  • Вызов: ComponentController::giveResponse
protected function giveResponse()
{
	global $APPLICATION;
	$APPLICATION->restartBuffer();

	header('Content-Type:application/json; charset=UTF-8');
	echo Json::encode(
		$this->responseData + array(
			'error' => $this->hasErrors(),
			'text' => implode('
', $this->errors), ) ); CMain::finalActions(); exit; }