Метод enrich
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
строки
25–62
~/bitrix/modulesim/lib/V2/Message/Vote/CopilotVoteEnricher.php
Исходный код
Сигнатура метода
public function enrich(array $rest, int $userId): array
Возвращает:
array
Описание
Adds a `vote` map to every element of $rest['copilot']['messages'] on behalf of $userId. Value per message: {like:true} | {dislike:true} | {like:true,dislike:true} | null. No-op when there is no copilot block or the user is not resolved.
Параметры
2| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$rest
|
array
|
-
|
-
|
$userId
|
int
|
-
|
-
|