Метод parsePorts
Сигнатура метода
private static function parsePorts(string $context, mixed $value): ?array
Возвращает:
?array
Описание
Ports are passed through as written, because their shape differs across activities (title, isActive and position are optional). Checked, and never amended: the template is compared byte for byte, so a port the source states wrong is a refusal and not a value to correct. 'id' and 'type' are the fields the port is checked by, because that is what the built node is read by: TemplateBuilder enters a binding into the first port of type 'topAux' and adds a port of a construct only when no port carries that id. A descriptor stating every field of TPL-03 makes the node trustworthy even when its activity does not resolve here, so a port the canvas cannot classify would otherwise reach the delivered template with links leading into it.
Параметры
2| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$context
|
string
|
—
|
—
|
$value
|
mixed
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulesbizproc/lib/Internal/AI/Agent/Generator/AgentConfig/ActivityDescriptorConfig.php