Метод addAction

public

Сигнатура метода

public function addAction(AddRequest $request): AddResponse

Возвращает: AddResponse

Описание

`crm.form.add`: answers with the id of the created form. The standard request of the framework carries what a creation takes: `fields` is demanded rather than optional, because a form is made of what it carries and a creation with nothing in it says nothing. Which of the published fields may be written here is the business of {@see FormWriteRequestMapper}, answering for the context this action stands in: a creation carries the activity of the form and a change does not. Which of them a creation cannot do without - the name and the CRM scheme - is the business of the domain validation, the only side that knows what a form already holds. A form carrying no activity of its own is created working: that is what a form is made for, and the client that wants it otherwise says so.

Параметры

1
Имя Тип По умолчанию Флаги
$request AddRequest —
—

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/V2/Infrastructure/Rest/Controller/Form/Form.php
Расположение метода в файле
Строки 128–138

Исходный код

PHP