Метод recordPublication
Сигнатура метода
public function recordPublication(RecordPublicationRequest $request): RecordPublicationResponse
Возвращает:
RecordPublicationResponse
Описание
Writes the published configuration of the template as a new version of its journal. Must be called inside the transaction of the publication itself: a version that cannot be written cancels it. The caller keeps the initial version of a template that has none: `ensureHistoryInitialized` has to run before the template row is overwritten, otherwise it copies the publication being made. The configuration is taken from the fields the caller has just written and only completed from the row, so the publication does not read its own body back.
Параметры
1| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$request
|
RecordPublicationRequest
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulesbizproc/lib/Api/Service/WorkflowTemplateHistoryService.php