Метод buildSettings
Сигнатура метода
private function buildSettings(bool $conditionAvailable, bool $actionAvailable): Settings
Возвращает:
Settings
Описание
The block composition of a translated node: base settings, condition, action and filter, every other block unavailable. The output block stays closed because the ports of a node are not changed by this panel, and the condition keeps living in a property of the node - it gates the node as a whole, the children of its action block included. The actions offered are the global catalog, the very one the universal node offers: no dictionary of its own is declared, because there is no product selection of "which action suits which node" to declare - the existing filtering by document type is the whole selection. The two go together: without the global catalog the dictionary stays empty and the catalog of the node is left empty by the early exit of {@see ComplexActivityService::getCorrespondingNodeActionActivityByName()}, so the block would be offered with nothing in it. The catalog itself is built on demand, per request, when the panel asks for it. The filter block is only declared here: whether it is offered depends on the document type, which a description is built without, and stays with `NodeFilterAvailability` of the editor - the declaration is intersected with its verdict by {@see CapabilityCatalogService::applyRuntimeGates()}.
Параметры
2| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$conditionAvailable
|
bool
|
—
|
—
|
$actionAvailable
|
bool
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulesbizproc/lib/Internal/Service/Activity/UnifiedPanelDescriptorProvider.php