Метод resolveAvailableBlocks
Сигнатура метода
private function resolveAvailableBlocks(?Bitrix\Bizproc\Activity\Dto\Complex\Settings $settings, bool $filterAvailable, bool $relationsAvailable, bool $filterModuleSupported): BlockAvailability
Возвращает:
BlockAvailability
Описание
Resolve availableBlocks from explicit declaration or fall back to the legacy default. A node that declares complex settings offers the relations block only with a declared relation action: without it the card has no action to select and could never be filled, so the surface is reported unavailable no matter what the runtime flag says. A legacy node without settings keeps the plain runtime-flag fallback — the same undecided state getRelationsAvailabilityForNode() reports as null — so the canvas and the settings panel cannot diverge on such nodes.
Параметры
4| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$settings
|
?Bitrix\Bizproc\Activity\Dto\Complex\Settings
|
—
|
—
|
$filterAvailable
|
bool
|
—
|
—
|
$relationsAvailable
|
bool
|
—
|
—
|
$filterModuleSupported
|
bool
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulesbizproc/lib/Internal/Service/Activity/CapabilityCatalogService.php