Метод validateUnifiedPanelChild

public static

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

public static function validateUnifiedPanelChild(string $activityCode, $childActivity, ?array $documentType = null): array

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

Описание

The verdict on one child of a node served by the unified settings panel. Both surfaces of the panel reach it from here - a complex node above and an ordinary node the panel serves ({@see \CBPActivity::validateChild()}) - so a second verdict cannot appear. Lives here and not next to the ordinary node because the phrase of the verdict does: `Loc::getMessage()` loads the language file of the file it is called from. The white list itself belongs to the service that owns both the action catalog and the relation action, and is memoized there per node ({@see \Bitrix\Bizproc\Internal\Service\Activity\ComplexActivityService::getUnifiedPanelChildCodes()}): answered by the descriptor of the node alone - the class of a child is never loaded - so a child costs one array read and never a traversal, on every entry into a template alike: the designer, an import, REST and the AI converter.

Параметры

3
Имя Тип По умолчанию Флаги
$activityCode string —
—
$childActivity — —
—
$documentType ?array null
—

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

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

Путь к исходному файлу Source
~/bitrix/modulesbizproc/lib/Public/Activity/BaseComplexActivity.php
Расположение метода в файле
Строки 107–131

Исходный код

PHP