Метод switchFeatureByAction
Сигнатура метода
private function switchFeatureByAction(string $featureId, bool $enabled): ?bool
Возвращает:
?bool
Описание
Returns the effective state after a completed attempt: the core engine may keep the previous value without raising an exception, so a completed call does not mean an applied change. Returns null when the attempt did not complete, and the client then restores the previous switch position. A hook throwing after the engine has already stored the value falls into that branch too, so the restored position can lag behind the stored one until a reload.
Параметры
2| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$featureId
|
string
|
—
|
—
|
$enabled
|
bool
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulescrm/install/components/bitrix/crm.features.list/class.php
Расположение метода в файле
Строки
182–226