<?php

/**
 * Return the site type title
 *
 * @param string $sitetype - name of the sitetype
 * @return string
 */

QUI::getAjax()->registerFunction(
    'ajax_project_types_get_title',
    static function ($sitetype): string {
        return QUI::getPackageManager()->getSiteTypeName($sitetype);
    },
    ['sitetype'],
    'Permission::checkAdminUser'
);
