module/Core/src/Grid/Core/Installer/Patch.php
protected function insertDefaultMenu( $content )
    {
        $root = $this->insertIntoTable(
            'menu',
            array(
                'type'  => 'container',
                'left'  => 1,
                'right' => 4,
            ),
            true
        );

        $this->insertIntoTable(
            'menu_label',
            array(
                'menuId'    => $root,
                'locale'    => 'en',
                'label'     => 'Default menu',
            )
        );

        $menuContent = $this->insertIntoTable(
            'menu',
            array(
                'type'  => 'content',
                'left'  => 2,
                'right' => 3,
            ),
            true
        );

        $this->insertIntoTable(
            'menu_label',
            array(
                'menuId'    => $menuContent,
                'locale'    => 'en',
                'label'     => 'Home',
            )
        );

        $this->insertIntoTable(
            'menu_property',
            array(
                'menuId'    => $menuContent,
                'name'      => 'contentId',
                'value'     => $content,
            )
        );

        return $root;
    }
protected function insertDefaultMenu( $content )
    {
        $root = $this->insertIntoTable(
            'menu',
            array(
                'type'  => 'container',
                'left'  => 1,
                'right' => 4,
            ),
            true
        );

        $this->insertIntoTable(
            'menu_label',
            array(
                'menuId'    => $root,
                'locale'    => 'en',
                'label'     => 'Default menu',
            )
        );

        $menuContent = $this->insertIntoTable(
            'menu',
            array(
                'type'  => 'content',
                'left'  => 2,
                'right' => 3,
            ),
            true
        );

        $this->insertIntoTable(
            'menu_label',
            array(
                'menuId'    => $menuContent,
                'locale'    => 'en',
                'label'     => 'Home',
            )
        );

        $this->insertIntoTable(
            'menu_property',
            array(
                'menuId'    => $menuContent,
                'name'      => 'contentId',
                'value'     => $content,
            )
        );

        return $root;
    }
protected function insertDefaultMenu ( $ content ) { $ root = $ this -> insertIntoTable ( 'menu' , array ( 'type' => 'container' , 'left' => 1 , 'right' => 4 , ) , true ) ; $ this -> insertIntoTable ( 'menu_label' , array ( 'menuId' => $ root , 'locale' => 'en' , 'label' => 'Default menu' , ) ) ; $ menuContent = $ this -> insertIntoTable ( 'menu' , array ( 'type' => 'content' , 'left' => 2 , 'right' => 3 , ) , true ) ; $ this -> insertIntoTable ( 'menu_label' , array ( 'menuId' => $ menuContent , 'locale' => 'en' , 'label' => 'Home' , ) ) ; $ this -> insertIntoTable ( 'menu_property' , array ( 'menuId' => $ menuContent , 'name' => 'contentId' , 'value' => $ content , ) ) ; return $ root ; }
Insert default menu

@param   int $content
@return  int
Insert default menu