Метод buildTemplateFromDir

private

Сигнатура метода

private function buildTemplateFromDir(IO\DirectoryEntry $dir, IO\FileEntry $templateFile, string $langId, NodesInstaller $installer): ?array

Возвращает: ?array

Описание

Pure file→template transformation shared by installFromDir() and buildTemplateFromSource(): unpack the allowed fields from template.json, resolve localized messages and system prompts, and attach the workflow document type. Returns null on a broken file or unknown activities. The install-specific fields (MODIFIED / IS_MODIFIED / ACTIVE) are added by the caller.

Параметры

4
Имя Тип По умолчанию Флаги
$dir IO\DirectoryEntry —
—
$templateFile IO\FileEntry —
—
$langId string —
—
$installer NodesInstaller —
—

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу Source
~/bitrix/modulesbizproc/lib/Public/Service/Template/NodesInstallerService.php
Расположение метода в файле
Строки 609–639

Исходный код

PHP