• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/uf/fileusertype.php
  • Класс: BitrixDiskUfFileUserType
  • Вызов: FileUserType::onAfterCopy
static function onAfterCopy(array $userField, int $entityId, $attachedIds, $entityObject, $userId = false)
{
	$attachedIds = $attachedIds ?: [];
	if (is_callable([$entityObject, "updateAttachedIdsInText"]))
	{
		$entityObject->updateAttachedIdsInText($entityId, $attachedIds, [FileUserType::class, "updateText"]);
	}
}