Метод addPort

private static

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

private static function addPort(array &$node, string $portId, ActivityPortType $type, ?string $title = null): void

Возвращает: void

Описание

A port the node does not declare yet: the descriptor of the activity describes it without the wiring of this particular step, so the construct that wires a port adds the port itself. A port the node does declare has to be of the type the construct uses it as. The descriptor wins over the registry, so a port declared as something else would go into the template as it stands while the link of the construct enters it: the canvas would then read that link as another kind of wiring than the source describes - a binding through an output port, a branch through an aux one.

Параметры

4
Имя Тип По умолчанию Флаги
$node array —
by-ref
$portId string —
—
$type ActivityPortType —
—
$title ?string null
—

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

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

Путь к исходному файлу Source
~/bitrix/modulesbizproc/lib/Internal/AI/Agent/Generator/TemplateBuilder/TemplateBuilder.php
Расположение метода в файле
Строки 344–379

Исходный код

PHP