Menu/MailerMenu.php
public function createMenu(array $options = []): ItemInterface
    {
        // Create Root
        $menu = $this->createRoot('mail_manager')->setChildAttr([
            'class' => 'nav nav-pills',
            'data-parent' => 'admin_mail_list',
        ]);

        // Create Menu Items
        $menu
            ->addChild('nav_mail_template')
            ->setLabel('nav_mail_template')
            ->setRoute('admin_mail_list')
            ->setRoles(['ROLE_MAIL_TEMPLATELIST'])
            // Logger
            ->addChildParent('nav_mail_logger')
            ->setLabel('nav_mail_logger')
            ->setRoute('admin_mail_logger')
            ->setRoles(['ROLE_MAIL_LOGGER']);

        return $menu;
    }
public function createMenu(array $options = []): ItemInterface
    {
        // Create Root
        $menu = $this->createRoot('mail_manager')->setChildAttr([
            'class' => 'nav nav-pills',
            'data-parent' => 'admin_mail_list',
        ]);

        // Create Menu Items
        $menu
            ->addChild('nav_mail_template')
            ->setLabel('nav_mail_template')
            ->setRoute('admin_mail_list')
            ->setRoles(['ROLE_MAIL_TEMPLATELIST'])
            // Logger
            ->addChildParent('nav_mail_logger')
            ->setLabel('nav_mail_logger')
            ->setRoute('admin_mail_logger')
            ->setRoles(['ROLE_MAIL_LOGGER']);

        return $menu;
    }
public function createMenu ( array $ options = [ ] ) : ItemInterface { // Create Root $ menu = $ this -> createRoot ( 'mail_manager' ) -> setChildAttr ( [ 'class' => 'nav nav-pills' , 'data-parent' => 'admin_mail_list' , ] ) ; // Create Menu Items $ menu -> addChild ( 'nav_mail_template' ) -> setLabel ( 'nav_mail_template' ) -> setRoute ( 'admin_mail_list' ) -> setRoles ( [ 'ROLE_MAIL_TEMPLATELIST' ] ) // Logger -> addChildParent ( 'nav_mail_logger' ) -> setLabel ( 'nav_mail_logger' ) -> setRoute ( 'admin_mail_logger' ) -> setRoles ( [ 'ROLE_MAIL_LOGGER' ] ) ; return $ menu ; }
Mail Manager Custom Menus.

@param array $options

@return ItemInterface
Mail Manager Custom Menus .