method public

Component::appendContent()

Класс: \Bitrix\Main\Engine\Response\Component

Сигнатура

public appendContent(mixed $content) : $this

Описание

Допустимые типы — строки, числа, null и объекты, реализующие метод __toString().

Параметры

$content mixed
Контент, который может быть приведён к строке.

Возвращаемое значение

$this

Как применяется в Component

Component::appendContent() — метод класса \Bitrix\Main\Engine\Response\Component модуля «Главный модуль». Component: Тип ответа для рендеринга ajax-html-контента из действия.

Метод объекта: сначала нужен экземпляр Component.

use Bitrix\Main\Engine\Response\Component;

/** @var Component $object */
$content = null;
$result = $object->appendContent($content);
// $result: $this

Другие методы Component

appendContent() есть и у других классов модуля «Главный модуль»: AjaxJson, Archive, Base, BFile, Component, Extension, File, HtmlContent.

Исходный файл: source/main/lib/engine/response/component.php:52

Что будем искать? Например,Продвижение