Метод switchActivity
Сигнатура метода
private function switchActivity(int $formId, bool $isActive): FormStateResponse
Возвращает:
FormStateResponse
Описание
The one body of both switches: the two actions differ in the state they ask for and in nothing else. What each direction takes is decided by the scenario, which owns the operation, so a second body here would be a second place for those rules to drift apart in. The projection the scenario answers with is read rather than assumed: it carries the state and the version by contract, and one that lost either would otherwise answer the client with a state that is not the state of the form.
Параметры
2| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$formId
|
int
|
—
|
—
|
$isActive
|
bool
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulescrm/lib/V2/Infrastructure/Rest/Controller/Form/Form.php