Метод appendBlockConstantsDefaults
Сигнатура метода
private function appendBlockConstantsDefaults(array $constantValues, BlockCollection $blocks): array
Возвращает:
array
Описание
Fills in default values for setup-block constants that were not passed by the caller. Needed for scenario/auto-start flows (e.g. DayPlannerStarter) that submit setup without constant values: required constants with a configured default must pass validation instead of failing the "required & empty" check before defaults are applied in setConstants(). Scoped to block constants only, so template-only constants are not added to the input and do not trigger the "unknown id" diff in validateConstants().
Параметры
2| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$constantValues
|
array
|
—
|
—
|
$blocks
|
BlockCollection
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulesbizproc/install/activities/bitrix/setuptemplateactivity/setuptemplateactivity.php