<?php

/**
 * Return a single info popup entry (raw values).
 *
 * @param int $id - entry id
 * @return array<string, mixed>
 */

use QUI\InfoPopup\Handler;

QUI::getAjax()->registerFunction(
    'package_quiqqer_info-popup_ajax_get',
    function ($id) {
        return Handler::getEntry((int)$id);
    },
    ['id'],
    'quiqqer.infoPopup.edit'
);
