src/MocaBonita.php
public function addSubMbPage(MbPage $mbPage)
    {
        $mbPage->setMainMenu(false);

        $mbPage->setSubMenu(true);

        $this->mbPages->put($mbPage->getSlug(), $mbPage);

        return $this;
    }
public function addSubMbPage(MbPage $mbPage)
    {
        $mbPage->setMainMenu(false);

        $mbPage->setSubMenu(true);

        $this->mbPages->put($mbPage->getSlug(), $mbPage);

        return $this;
    }
public function addSubMbPage ( MbPage $ mbPage ) { $ mbPage -> setMainMenu ( false ) ; $ mbPage -> setSubMenu ( true ) ; $ this -> mbPages -> put ( $ mbPage -> getSlug ( ) , $ mbPage ) ; return $ this ; }
Add a MbPage to MocaBonita as submenu

@param MbPage $mbPage

@return MocaBonita current instance of MocaBonita
Add a MbPage to MocaBonita as submenu