src/OpenCart/Helpers/OcHelper.php
public function eventViewColumnLeft(&$menus)
    {
        foreach ($menus as &$menu) {
            if ($menu['id'] === 'menu-sale') {
                $menu['children'][] = array(
                    'name' => 'Acumulus',
                    'href' => '',
                    'children' => array(
                        array(
                            'name' => $this->t('batch_form_link_text'),
                            'href' => $this->container->getShopCapabilities()->getLink('batch'),
                            'children' => array(),
                        ),
                        array(
                            'name' => $this->t('advanced_form_link_text'),
                            'href' => $this->container->getShopCapabilities()->getLink('advanced'),
                            'children' => array(),
                        ),
                    ),
                );
            }
        }
    }
public function eventViewColumnLeft(&$menus)
    {
        foreach ($menus as &$menu) {
            if ($menu['id'] === 'menu-sale') {
                $menu['children'][] = array(
                    'name' => 'Acumulus',
                    'href' => '',
                    'children' => array(
                        array(
                            'name' => $this->t('batch_form_link_text'),
                            'href' => $this->container->getShopCapabilities()->getLink('batch'),
                            'children' => array(),
                        ),
                        array(
                            'name' => $this->t('advanced_form_link_text'),
                            'href' => $this->container->getShopCapabilities()->getLink('advanced'),
                            'children' => array(),
                        ),
                    ),
                );
            }
        }
    }
public function eventViewColumnLeft ( & $ menus ) { foreach ( $ menus as & $ menu ) { if ( $ menu [ 'id' ] === 'menu-sale' ) { $ menu [ 'children' ] [ ] = array ( 'name' => 'Acumulus' , 'href' => '' , 'children' => array ( array ( 'name' => $ this -> t ( 'batch_form_link_text' ) , 'href' => $ this -> container -> getShopCapabilities ( ) -> getLink ( 'batch' ) , 'children' => array ( ) , ) , array ( 'name' => $ this -> t ( 'advanced_form_link_text' ) , 'href' => $ this -> container -> getShopCapabilities ( ) -> getLink ( 'advanced' ) , 'children' => array ( ) , ) , ) , ) ; } } }
Adds our menu-items to the admin menu.

@param array $menus
The menus part of the data as will be passed to the view.
Adds our menu - items to the admin menu .