Метод unwrapSingleCondition
Сигнатура метода
private static function unwrapSingleCondition(WebFormFilter $node): ?WebFormFilter
Возвращает:
?WebFormFilter
Описание
The condition a node stands for, or `null` when it stands for more than one. A group that joins a single condition and negates nothing is that condition: neither `and` nor `or` of one operand says anything. The unwrapping is what the filter of a request needs rather than a convenience - the transport hands the domain exactly such a group around every condition it read ({@see \Bitrix\Crm\V2\Infrastructure\Rest\Dto\Mapping\Form\FormRequestMapper}). A negating group is left alone: it says the opposite of the condition it holds, and telling the two apart by this key is not what the key is for.
Параметры
1| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$node
|
WebFormFilter
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulescrm/lib/V2/Internal/Repository/WebForm/FormRepository.php