Метод statedField
Сигнатура метода
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
~/bitrix/modulesbizproc/lib/Internal/AI/Agent/Generator/AgentConfig/ActivityDescriptorConfig.php