<?php

QUI::getAjax()->registerFunction(
    'ajax_site_children_getChildLayout',
    static function ($project, $siteId): string {
        $Project = QUI::getProjectManager()->decode($project);
        $Site = new QUI\Projects\Site\Edit($Project, (int)$siteId);

        return QUI\Utils\Site::getChildLayout($Site);
    },
    ['project', 'siteId']
);
