Метод needsUnifiedPanelCompletion
Сигнатура метода
private static function needsUnifiedPanelCompletion(CBPActivity $activity, ?array $activityData): bool
Возвращает:
bool
Описание
Whether the node can carry anything of the unified settings panel at all: a service property of the panel among the properties the template saved, or children of its own. Neither of the two means there is nothing to complete - and the descriptor of the activity, a `.description.php` read with its language file for the first instance of every type in the request, is not asked for. The gate is what keeps the cost off the general creation path: loading a process builds every node of its template, most of them ordinary activities the panel never serves, and each distinct type would otherwise pay that read on every run. Cheap and one-sided on purpose: it never turns a node the panel does serve into one it does not - the verdict itself stays with the descriptor ({@see self::completeWithUnifiedPanelProperties()}) - and a caller that cannot tell what the node carries passes nothing and is completed as before.
Параметры
2| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$activity
|
CBPActivity
|
—
|
—
|
$activityData
|
?array
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulesbizproc/classes/general/activity.php