Метод getRequiredConstantBlocks
Сигнатура метода
public function getRequiredConstantBlocks(int $templateId, array $constantCodes): array
Возвращает:
array
Описание
Returns the setup-template blocks of a template narrowed down to the given constant codes, so the existing setup-template UI can render only a subset of constants (used by the AI-agent upgrade fill scenario to show only the new required constants of the reference). Reads the template's SetupTemplateActivity 'blocks' property and delegates filtering to CBPSetupTemplateActivity::filterBlocksByConstantCodes() (no block-parsing duplication). Returns an empty array when the template has no setup activity or nothing matches.
Параметры
2| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$templateId
|
int
|
—
|
—
|
$constantCodes
|
array
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulesbizproc/lib/Internal/Service/SetupTemplate/SetupTemplateService.php