src/Event/Subscriber/ExtraConfigurationSubscriber.php
private function addDefaultLeftMenu(array &$configuration)
    {
        if (!$this->applicationConfiguration->getParameter('enable_menus')) {
            return;
        }
        $menus = $this->configurationFactory->createResourceMenuConfiguration();

        // Add the resources menu for each action of the admin
        foreach ($configuration['actions'] as $name => $action) {
            if (null === $action) {
                $action = [];
            }

            if (key_exists('menus', $action) && key_exists('left', $action)) {
                continue;
            }

            $configuration['actions'][$name]['menus']['left'] = $menus;
        }
    }
private function addDefaultLeftMenu(array &$configuration)
    {
        if (!$this->applicationConfiguration->getParameter('enable_menus')) {
            return;
        }
        $menus = $this->configurationFactory->createResourceMenuConfiguration();

        // Add the resources menu for each action of the admin
        foreach ($configuration['actions'] as $name => $action) {
            if (null === $action) {
                $action = [];
            }

            if (key_exists('menus', $action) && key_exists('left', $action)) {
                continue;
            }

            $configuration['actions'][$name]['menus']['left'] = $menus;
        }
    }
private function addDefaultLeftMenu ( array & $ configuration ) { if ( ! $ this -> applicationConfiguration -> getParameter ( 'enable_menus' ) ) { return ; } $ menus = $ this -> configurationFactory -> createResourceMenuConfiguration ( ) ; // Add the resources menu for each action of the admin foreach ( $ configuration [ 'actions' ] as $ name => $ action ) { if ( null === $ action ) { $ action = [ ] ; } if ( key_exists ( 'menus' , $ action ) && key_exists ( 'left' , $ action ) ) { continue ; } $ configuration [ 'actions' ] [ $ name ] [ 'menus' ] [ 'left' ] = $ menus ; } }
Add the default left menu configuration. One item for each Admin.

@param array $configuration
Add the default left menu configuration . One item for each Admin .