Skip to content
Code-Schnipsel Gruppen Projekte
getAvailableBricks.php 422 B
Newer Older
Henning Leutz's avatar
Henning Leutz committed
<?php

/**
 * This file contains package_quiqqer_bricks_ajax_getAvailableBricks
 */

/**
 * Returns the available bricks in the system
 *
 * @return array
 */
Henning Leutz's avatar
Henning Leutz committed
QUI::$Ajax->registerFunction(
    'package_quiqqer_bricks_ajax_getAvailableBricks',
Henning Leutz's avatar
Henning Leutz committed
    function () {
        $BricksManager = QUI\Bricks\Manager::init();
        return $BricksManager->getAvailableBricks();
    },
Henning Leutz's avatar
Henning Leutz committed
    false,
    'Permission::checkAdminUser'
);