# VoteUserType::onBeforeCopy()

URL: https://chugunov.pro/api-bitrix/vote/uf/voteusertype/onbeforecopy/
Проверено на 1С-Битрикс 25.x, обновлено 03.08.2026.
Источник: независимый русскоязычный справочник chugunov.pro. Не является официальной документацией 1С-Битрикс.

Класс: [`\Bitrix\Vote\Uf\VoteUserType`](https://chugunov.pro/api-bitrix/vote/uf/voteusertype/)
Модуль: Vote.
Свойства элемента: method, public, static.

## Сигнатура

```php
public static onBeforeCopy(array<string|int, mixed> $userField, int $newEntityId, mixed $attachedId, object $implementer[, bool $userId = false ]) : array<string|int, mixed>|int|string
```

## Параметры

- `$userField` `array<string|int, mixed>` — обязательный
- `$newEntityId` `int` — обязательный
- `$attachedId` `mixed` — обязательный
- `$implementer` `object` — обязательный
- `$userId` `bool` — необязательный, по умолчанию `false`

## Возвращаемое значение

`array<string|int, mixed>|int|string`

Оригинал в официальной документации: https://docs.1c-bitrix.ru/api/classes/Bitrix-Vote-Uf-VoteUserType.html
