src/MocaBonita.php
public function getMbPage($slugPage)
    {
        if (!$this->mbPages->has($slugPage)) {
            throw new MbException("The page {$slugPage} has not been added to MocaBonita's list of pages!");
        }

        return $this->mbPages->get($slugPage);
    }
public function getMbPage($slugPage)
    {
        if (!$this->mbPages->has($slugPage)) {
            throw new MbException("The page {$slugPage} has not been added to MocaBonita's list of pages!");
        }

        return $this->mbPages->get($slugPage);
    }
public function getMbPage ( $ slugPage ) { if ( ! $ this -> mbPages -> has ( $ slugPage ) ) { throw new MbException ( "The page {$slugPage} has not been added to MocaBonita's list of pages!" ) ; } return $ this -> mbPages -> get ( $ slugPage ) ; }
Get MbPage of slug

@param string $slugPage slug of the MbPage

@throws MbException

@return MbPage
Get MbPage of slug