Метод updateAction
Сигнатура метода
public function updateAction(UpdateFormRequest $request): UpdateResponse
Возвращает:
UpdateResponse
Описание
`crm.form.update`: answers with the plain result flag; what the request did not carry stays as it is, and empty `fields` is a valid request asking for no write. The expected version is read before the right to write is asked about - unlike the fields ({@see mapChangeSet()}), and on purpose: it is a property of the request itself, refused the same way the framework refuses a malformed `id`, before the request reaches the operation. The activity of the form is not part of the document a change carries: a stored form is started and stopped by `crm.form.activate` and `crm.form.deactivate`, so a document naming it here is refused as the write of a property published for reading.
Параметры
1| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$request
|
UpdateFormRequest
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulescrm/lib/V2/Infrastructure/Rest/Controller/Form/Form.php