Метод applyRuntimeGates

private

Сигнатура метода

private function applyRuntimeGates(BlockAvailability $declared, bool $relationsAvailable, bool $filterModuleSupported): BlockAvailability

Возвращает: BlockAvailability

Описание

Intersect an explicit declaration with the runtime gates of the two surfaces that have one. A declared relations block stays available only while the complexNodeConnections feature allows it, because a relation card is edited by a surface that feature owns. A declared filter block stays available only while the document context has a filter-result resolver: the editor may only offer a selection the runtime is able to resolve, and a node declaring the filter block would otherwise show it on a document whose module has no provider at all. The filter rollout flag is still deliberately not applied here - it decides only for nodes without a declaration (buildLegacyDefaultAvailableBlocks()). Returns a copy: the declared descriptor is never mutated.

Параметры

3
Имя Тип По умолчанию Флаги
$declared BlockAvailability —
—
$relationsAvailable bool —
—
$filterModuleSupported bool —
—

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу Source
~/bitrix/modulesbizproc/lib/Internal/Service/Activity/CapabilityCatalogService.php
Расположение метода в файле
Строки 325–351

Исходный код

PHP