Метод getRelationsAvailabilityForNode
Сигнатура метода
public function getRelationsAvailabilityForNode(ActivityDescription $description, bool $relationsAvailable): ?bool
Возвращает:
?bool
Описание
Relations-block availability for canvas/catalog consumers, gated the same way as applyRuntimeGates(): a declared relations block stays available only when the node declares the relation action its cards are filled with and the runtime flag allows it, so the canvas never diverges from the settings panel. Returns null when the availability cannot be decided from the descriptor — legacy nodes keep the frontend feature-flag fallback.
Параметры
2| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$description
|
ActivityDescription
|
—
|
—
|
$relationsAvailable
|
bool
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulesbizproc/lib/Internal/Service/Activity/CapabilityCatalogService.php
Расположение метода в файле
Строки
212–235