src/CoreBundle/EventListener/UserListener.php
private function buildBackendModules(&$localMenu)
    {
        foreach ($this->viewCombination->getStandalone() as $metaModelName => $screen) {
            $section = $screen['meta']['backendsection'];
            if (!isset($localMenu[$section])) {
                $localMenu[$section] = [];
            }
            if (!isset($localMenu[$section]['metamodel_' . $metaModelName])) {
                $localMenu[$section]['metamodel_' . $metaModelName] = ['tables' => []];
            }
            $localMenu[$section]['metamodel_' . $metaModelName]['callback'] = Module::class;
            array_unshift($localMenu[$section]['metamodel_' . $metaModelName]['tables'], $metaModelName);
        }
    }
private function buildBackendModules(&$localMenu)
    {
        foreach ($this->viewCombination->getStandalone() as $metaModelName => $screen) {
            $section = $screen['meta']['backendsection'];
            if (!isset($localMenu[$section])) {
                $localMenu[$section] = [];
            }
            if (!isset($localMenu[$section]['metamodel_' . $metaModelName])) {
                $localMenu[$section]['metamodel_' . $metaModelName] = ['tables' => []];
            }
            $localMenu[$section]['metamodel_' . $metaModelName]['callback'] = Module::class;
            array_unshift($localMenu[$section]['metamodel_' . $metaModelName]['tables'], $metaModelName);
        }
    }
Add the modules to the backend sections.

@param array $localMenu Reference to the global array.

@return void