Метод isSurfaceAvailableForNode
Сигнатура метода
public function isSurfaceAvailableForNode(string $activityCode, ActivityDescription $description, bool $featureAvailable): bool
Возвращает:
bool
Описание
Whether the unified panel is the surface the editor is to open for this node: the verdict published with a catalog item and with a saved block, and the one the settings endpoints of the designer answer by. A node declaring a complex-settings descriptor of its own is served by the panel either way - it is not what the rollout flag of the feature decides about. A node the descriptor above is completed for - a trigger, a base node - follows that flag, so switching the flag off leaves exactly those nodes on their legacy settings form and refuses the unified settings a client would send for them. What the panel has already saved keeps being loaded and run whatever the flag says: the service properties of a node, its container of children and its condition are the data contract of the runtime and not a surface ({@see \CBPActivity::completeWithUnifiedPanelProperties()}), and the white list of the children of such a node stays with them ({@see \CBPActivity::validateChild()}) - a template saved while the feature was on has to keep publishing after it is switched off.
Параметры
3| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$activityCode
|
string
|
—
|
—
|
$description
|
ActivityDescription
|
—
|
—
|
$featureAvailable
|
bool
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulesbizproc/lib/Internal/Service/Activity/UnifiedPanelDescriptorProvider.php