Метод statedField

private static

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

private static function statedField(string $context, array $data, string $field): mixed

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

Описание

The value of a descriptor field the source states, and null where it states none. A field written as null is refused instead: null is a value of 'icon' and 'color_index' alone - a node in the template does carry it there, which is why the two are told apart from an unstated field by a flag of their own - while the node type, the dimensions and the ports are taken from the registry of activities whenever the source states none. A null under them could never be written into a node, so reading it as no key at all made the node depend on the environment of the build: the very thing a descriptor is written down to keep it out of.

Параметры

3
Имя Тип По умолчанию Флаги
$context string —
—
$data array —
—
$field string —
—

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

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

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

Исходный код

PHP