Метод withDefaultViews
Сигнатура метода
public static function withDefaultViews(mixed $stored): array
Возвращает:
array
Описание
The stored column a write of the embedding merges into: the block of the variants filled with the defaults while the column holds it empty, and left alone otherwise. A form nobody has placed anywhere carries the block empty, and every reader of the column answers the defaults of the whole tree for it - {@see ViewSettings::fromStoredViews()} and {@see Form::loadOnlyForm()} alike. Merging one node into an empty block would leave it non-empty and every setting the write said nothing about unanswered by both of them, so the defaults are laid under the written node instead.
Параметры
1| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$stored
|
mixed
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulescrm/lib/V2/Internal/Repository/WebForm/FormSettingsColumn.php