• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/engine/response/htmlcontent.php
  • Класс: BitrixMainEngineResponseHtmlContent
  • Вызов: HtmlContent::__construct
public function __construct(ContentAreaInterface $content, $status = self::STATUS_SUCCESS, ErrorCollection $errorCollection = null, array $additionalResponseParams = [])
{
	$html = $content->getHtml();

	$this->collectAssetsPathList();

	$result = [
		'html' => $html,
		'assets' => [
			'css' => $this->getCssList(),
			'js' => $this->getJsList(),
			'string' => $this->getStringList()
		],
		'additionalParams' => $additionalResponseParams,
	];
	if($content instanceof DataSectionInterface)
	{
		$result[$content->getSectionName()] = $content->getSectionData();
	}

	parent::__construct($result, $status, $errorCollection);

	$this->addHeader('X-Process-Assets', 'assets');
}