Метод setFillEnabled
Сигнатура метода
public function setFillEnabled(int $entityTypeId, string $fieldName, bool $isEnabled): Result
Возвращает:
Result
Описание
Forbids or allows filling one user field of the entity type. A name the entity type does not have is refused with {@see ErrorCode::NOT_FOUND} - the same code {@see \Bitrix\Crm\Controller\AiFieldFillPolicy::saveAction()} answers that situation with, so one refusal cannot reach a client under two different codes. That route checks the name before getting here and carries the phrase shown to the user; the text below is for the calling code.
Параметры
3| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$entityTypeId
|
int
|
—
|
—
|
$fieldName
|
string
|
—
|
—
|
$isEnabled
|
bool
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulescrm/lib/V2/Internal/Service/Ai/FieldFillPolicyService.php
Расположение метода в файле
Строки
128–154