Метод collectionOf

private

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

private function collectionOf(string $path, mixed $value, array &$errors): ?array

Возвращает: ?array

Описание

A whole collection: the input replaces it, an empty list clears it, and null is refused - one form for one intention. A list the contract has no room for is refused at the path it arrived on, whether it is too long by itself or leaves the document past its total. An item holding null is refused at the address it arrived on for the same reason the whole collection is: dropped instead, it would turn a list of one wrong identifier into a request that successfully clears the collection.

Параметры

3
Имя Тип По умолчанию Флаги
$path string —
—
$value mixed —
—
$errors array —
by-ref

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

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

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/V2/Infrastructure/Rest/Dto/Mapping/Form/FormWriteRequestMapper.php
Расположение метода в файле
Строки 199–246

Исходный код

PHP