src/Menu/MenuConfigInterpreter.php
protected function mergeModulePresencesIntoLayout(array $layout, MenuConfiguredModulesDataInterface $modules)
    {
        $standard = $modules->standard();

        $layout = $this->mergeModulePresencesIntoLayoutLayer($layout, $standard);

        // Append ungrouped presences to to the end of the layout
        $standard->each(function ($presences) use (&$layout) {
            /** @var MenuPresenceInterface[] $presences */
            foreach ($presences as $presence) {
                $layout[] = $presence;
            }
        });

        return $layout;
    }
protected function mergeModulePresencesIntoLayout(array $layout, MenuConfiguredModulesDataInterface $modules)
    {
        $standard = $modules->standard();

        $layout = $this->mergeModulePresencesIntoLayoutLayer($layout, $standard);

        // Append ungrouped presences to to the end of the layout
        $standard->each(function ($presences) use (&$layout) {
            /** @var MenuPresenceInterface[] $presences */
            foreach ($presences as $presence) {
                $layout[] = $presence;
            }
        });

        return $layout;
    }
protected function mergeModulePresencesIntoLayout ( array $ layout , MenuConfiguredModulesDataInterface $ modules ) { $ standard = $ modules -> standard ( ) ; $ layout = $ this -> mergeModulePresencesIntoLayoutLayer ( $ layout , $ standard ) ; // Append ungrouped presences to to the end of the layout $ standard -> each ( function ( $ presences ) use ( & $ layout ) { /** @var MenuPresenceInterface[] $presences */ foreach ( $ presences as $ presence ) { $ layout [ ] = $ presence ; } } ) ; return $ layout ; }
Merges module menu presences into layout tree array.

@param array                              $layout
@param MenuConfiguredModulesDataInterface $modules
@return array
Merges module menu presences into layout tree array .