Метод canonicalizeNativeBool
Сигнатура метода
private static function canonicalizeNativeBool(mixed $value): mixed
Возвращает:
mixed
Описание
A native bool of a template built outside the wizard, cast the way BoolType::extractValue does: a plain string cast would turn false into the empty string and lose the stored "no", and the switcher of the form reads a value that is not a string as an empty one. Anything but a native bool is left to the caller.
Параметры
1| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$value
|
mixed
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulesbizproc/install/activities/bitrix/setuptemplateactivity/setuptemplateactivity.php
Расположение метода в файле
Строки
1074–1082