• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/rest/userfield.php
  • Класс: BitrixMainRestUserField
  • Вызов: UserField::processItemEvent
static function processItemEvent(array $arParams, array $arHandler): array
{
	$item = $arParams[0] ?? null;
	$id = $arParams[1] ?? null;

	$id = $id?:$item['ID'];

	if (!$id)
	{
		throw new RestException('id not found trying to process event');
	}

	return [
		'FIELDS' => [
			'ID' => $id
		],
	];
}