luyadev/luya-module-admin

View on GitHub
src/commands/views/crud/build_summary.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
To add the module to admin menu, update your 'Module.php' like this:

public $apis = [
    '<?= $apiEndpoint; ?>' => '<?= $apiClassPath; ?>',
];

public function getMenu()
{
    return (new \luya\admin\components\AdminMenuBuilder($this))
        ->node('<?= $humanizeModelName; ?>', 'extension')
            ->group('Group')
                ->itemApi('<?= $humanizeModelName; ?>', '<?= $controllerRoute; ?>', 'label', '<?= $apiEndpoint; ?>');
}